Guest JWirt Posted October 29, 2008 Posted October 29, 2008 I want to copy a file to another computer on my local network with a batch command. I wrote this statement in the command file: if not exist \\192.168.1.102\g:\Lotus\work\AAccounts.APR goto :end When I run the command file, I get an error message that the "drive not found." ":end" is a label in the batch file. The machine at 192.168.1.102 is accessible from my machine using Explorer. Should the drive letter have a "$" sign after it, as in g$? Doesn't help. Thanks. John Wirt
Guest Pegasus \(MVP\) Posted October 29, 2008 Posted October 29, 2008 Re: Cmd language: copying a file to another computer on LAN "JWirt" <JWirt@discussions.microsoft.com> wrote in message news:BAC26141-452F-410D-BAD0-96360F449C42@microsoft.com... >I want to copy a file to another computer on my local network with a batch > command. I wrote this statement in the command file: > > if not exist \\192.168.1.102\g:\Lotus\work\AAccounts.APR goto :end > > When I run the command file, I get an error message that the "drive not > found." > > ":end" is a label in the batch file. > > The machine at 192.168.1.102 is accessible from my machine using Explorer. > > Should the drive letter have a "$" sign after it, as in g$? Doesn't help. > > Thanks. > > John Wirt Let's have a look at the whole batch file, not just a single line.
Recommended Posts