|
| ||||||||||
| Tags: batch, dos, file |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Batch file to copy a file from the local drive to a computer on lan?
I need to create a batch file to copya file from the local drive to a computer on LAN based on the PC's IP address I need to be prompted for the file to be copied and also the destinations IP address and drive eg \\12.x.x.x\c$ |
|
#2
| ||||
| ||||
| Re: Batch file to copy a file from the local drive to a computer on lan?
set path=c:\WINDOWS\system32; echo Copying started at %date% %time%>>_date_.txt xcopy E:\backup \\SERVER\BACKUP\others /s /a /d echo Copying finished at %date% %time%>>_date_.txt echo Completed Successfully at %date% %time%>>_date_.txt echo >>_date_.txt pause |
|
#3
| ||||
| ||||
| Re: Batch file to copy a file from the local drive to a computer on lan?
Try using double quotes around the string containing the long names: eg. copy c:\performance.txt "C:\documents and settings\%username%" |
|
#4
| |||
| |||
| Re: Batch file to copy a file from the local drive to a computer on lan?
What I mean was, I should be prompted for a file name, to which I enter a file name, and then be prompted for the destination where that file be copied. |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Batch file to copy a file from the local drive to a computer on lan?" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| batch file to copy file to another place | bomblast | Windows Software | 1 | 03-11-2011 12:53 AM |
| Batch file to copy ip | zaharkl | Technology & Internet | 1 | 21-04-2011 10:50 AM |
| Execute a batch file on a remote computer? | Chris D | Windows Server Help | 6 | 20-01-2011 10:09 PM |
| Batch File to Move or Copy Files | Pratim | Windows Software | 6 | 21-03-2010 09:32 PM |
| How to add local domain user via batch file | Imtiyaz | Networking & Security | 3 | 18-05-2009 09:51 PM |