Reputation: 355
I am running the following command using machine1 (in administrator mode):
winrs -r:machine2 "net use U: \\\\bosln0\\sore45 /persistent:yes & cd U:\ples\prefile\filesreg & echo abc"
I am getting error:
U: has a remembered connection to \\bosln0\sore45. Do you
want to overwrite the remembered connection? (Y/N) [Y]: No valid response was provided.
**The system cannot find the drive specified.**
abc
But, when i am using command:
winrs -r:machine2 "cd C:\ples\prefile\filesreg & echo abc"
No issue is coming.
Why is issue coming only with mapped network drives? How can I resolve the issue?
Note: Command is running from machine1 in administrator mode.
Upvotes: 0
Views: 329