Hello,
Would you know why this does not work please?
dir . /b/s ^| findstr /R "\\http%3a%2f%2fcygwin.mirror.constant.com%2f$"
The syntax of the file, directory, or volume name is incorrect.
thanks in advance
Find the directory path in batch
Moderator: DosItHelp
Re: Find the directory path in batch
External dos commands like "findstr.exe" typically aren't able to open a file using an URI;
also most probable encoded URI's are also unsupported.
You have to map a network drive to a local volume like for example "Z:", using "net.exe" (and after you have finished your work, unmap it):
If you need to set a user /password... then you might wnat to read:
penpen
also most probable encoded URI's are also unsupported.
You have to map a network drive to a local volume like for example "Z:", using "net.exe" (and after you have finished your work, unmap it):
Code: Select all
:map network drive to Z:
:CAUTION: Make sure Z: is an unused volume label!
net use z: \\remotepc\sharename
:...
:do something with volume z:
:...
:don't forget to unmap the network drive
net use z: /delete
Code: Select all
net use /?