Cmd language: copying a file to another computer on LAN

J

JWirt

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
 
P

Pegasus \(MVP\)

JWirt said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top