3 replies
by pschuvie
The Dos commands of copy, xcopy, and move all have a /Y switch which when used eliminates the prompting for do you want to overwrite and proceeds with the action without further intervention.
To see the parameters of these open a DOS session change to the c:\windows\command directory and type copy /? for a listing of switches available.
If you want to provide a safety level, always a good practice, then you would create in the batch the action to locate the file, if exist copy the file toxyz.old, delete the original file, and then copy the new file to where the original file was. If the original file did not exist then you would just proceed with the copy action.
Either way the copy or move actions can be modified to prevent prompting with the Y switch.
Hope this helps.
by lansing
by lansing
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending