I'm trying to open various files stored on a local network server with this piece of batch code:
for /f "tokens=*" %%G in ('dir /b /a:d "\\server\directory\*"') do %%G\setup.xml
but since dir \\server\directory
doesn't work so won't that piece of code.
How can I accomplish that?
Thank you in advance
You write:
At first I was going to say that does work. But what actually works is:
The server has to share the directory. On the server you can use a command like:
The you should be able to:
You can map a drive using
and then you can change to that directory using
You can then run your batch command on the current directory, and when you are finished and the files are no longer in use, you can delete the drive using