I have a remote directory that is shared and mounted to my localhost. I know the remote directory is mounted and shared correctly as I can read, write, execute the file during a normal mouse and click event.
Although, I do need to script something and would like to do this using the Windows cmd executable.
For example, I want to cd/ change directory into the the remote directory and rename the file.
How do I do so in a sample Windows script?
So far, the command line below isn't working for me. I might not be passing this properly in the first place.
C:\>cd \\myremotehost\MY_DIR
Error:
`\myremotehost\MY_DIR'
CMD does not support UNC paths as current directories
I want to script this and rename myfile to mynewnamefile.