Discussion Locked
0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I'm trying to write a simple script that copies files from one pc to another on startup. So far I've done this by making a batchfile that uses the DOS copy-command. But to make the proces as short as possible I'ld like to know if it is possible to only copy the files that have been altered since the last time they were copied. Is there some kind of switch available that does this in the DOS copy-command? or is there an other (more modern way) to do it?
2 replies
You need to use the DOS XCOPY command which has more features than plain DOS. Use the /M (copy with arch flag set).
There are alternative copy command such as XXCopy, Zcopy and robocopy which may be better.
by wlbowers
Use the xcopy command.
xcopy c:\save\*.* e:\save\*.* /D /Y /V
The above command will copy files from c:\save to E:\save.
the /D switch specifies only files uhose source time is newer than the destination time.
The /Y switch keeps you from answering the overwrite prompt.
The /V switch will verify files after copy.
For a complete listing of xcopy or copy commands open a dos window and type
xcopy /? and press enter
copy /? and press enter
Good Luck Lee
This discussion is closed to new replies.
Trending Desktop posts
Sort by Trending
0 helpful
1 reply
Question
Floppy drive wont work on my 486
0 helpful
1 reply
Discussion
How to make light speed agent go away
0 helpful
4 replies
Discussion Locked
Ryzen 7 7700
0 helpful
2 replies
Question Locked
Issue fully resetting my PC
0 helpful
4 replies