PC Review


Reply
Thread Tools Rate Thread

Cmd language: copying a file to another computer on LAN

 
 
JWirt
Guest
Posts: n/a
 
      29th Oct 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
 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      29th Oct 2008

"JWirt" <(E-Mail Removed)> wrote in message
news:BAC26141-452F-410D-BAD0-(E-Mail Removed)...
>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.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
copying .pst file to another computer tuuf Microsoft Outlook Discussion 2 25th Jun 2008 09:38 AM
Copying PST file to another computer bkhamilton@verizon.net Microsoft Outlook Installation 1 10th Sep 2007 01:51 PM
Copying .mdb file to another computer sowen12@gmail.com Microsoft Access 8 3rd May 2007 01:15 AM
copying file for use on another computer =?Utf-8?B?d2luZGRhbmNlcl81NUBob3RtYWlsLmNvbQ==?= Microsoft Access 3 14th Jul 2006 04:35 PM
copying to a different computer using File.Copy() Ram Baruch Microsoft C# .NET 8 22nd Jun 2004 01:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:45 PM.