Computing.Net > Forums > Windows NT > NT batch file to copy only changed files

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

NT batch file to copy only changed files

Reply to Message Icon

Name: Richard Stokes
Date: August 20, 2001 at 09:33:10 Pacific
Comment:

I have a folder with various forms on 7 different servers that I copy from my machine. Right now I am using the following in a batch file to copy the contents of "C:\instdesktop" to each server:
(instdesk is the name of the share)

COPY C:\instdesktop \\tpnce0501\instdesk
COPY C:\instdesktop \\tpnce0503\instdesk
COPY C:\instdesktop \\tpnce0505\instdesk
COPY C:\instdesktop \\tpnce0507\instdesk
COPY C:\instdesktop \\tpnce0509\instdesk
COPY C:\instdesktop \\tpnce0511\instdesk
COPY C:\instdesktop \\tpnce0513\instdesk

This is taking longer than I want it to...
I would like to copy only changed files since the last time the folder was copied. Can anyone assist?!



Sponsored Link
Ads by Google

Response Number 1
Name: MadaAxe
Date: August 20, 2001 at 10:02:09 Pacific
Reply:

COPY C:\instdesktop \\tpnce0501\instdesk /D
COPY C:\instdesktop \\tpnce0503\instdesk /D
COPY C:\instdesktop \\tpnce0505\instdesk /D
COPY C:\instdesktop \\tpnce0507\instdesk /D
COPY C:\instdesktop \\tpnce0509\instdesk /D
COPY C:\instdesktop \\tpnce0511\instdesk /D
COPY C:\instdesktop \\tpnce0513\instdesk /D

I don't know all the switches but here are a few.

Switches:
/y - Replace existing files without prompting
/s - Subdirectories
/e - Subdirectories if empty
/d - Date
/w - ?


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows NT Forum Home


Sponsored links

Ads by Google


Results for: NT batch file to copy only changed files

NT Batch File Reboot www.computing.net/answers/windows-nt/nt-batch-file-reboot/1163.html

NT Batch file commands www.computing.net/answers/windows-nt/nt-batch-file-commands/4653.html

NT batch file problem www.computing.net/answers/windows-nt/nt-batch-file-problem/10572.html