Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.
Xcopy command
Name: lost Date: October 23, 2000 at 12:06:13 Pacific
Comment:
I am using the XCOPY command to copy files from one folder to another based on date. Example: xcopy /d:8-1-00 c:\temp\*.* c:\temp2
What I would like to do is prompt the user to enter the date, then pass that date to the XCOPY command. Is this possible? Any help would be much appreciated.
Name: Rambler Date: October 23, 2000 at 14:23:13 Pacific
Reply:
You'd need a prog. to do that, but how about a batch file (or are you already using one?)
Hope this is not too obvious for you - difficult to always gauge a poster's level of expertise...
e.g. name the file (notepad) as (say) mycopy.bat
@echo off xcopy /d:%1 c:\temp\*.* c:\temp2
The user would have to type in mycopy 8-1-00
0
Response Number 2
Name: Mikey Date: October 24, 2000 at 13:30:22 Pacific
Reply:
I am in a similar jam. I am creating a batch file that will copy a clients data from one folder on their PC to a network share on a daily basis. I wish for it to be unattended (no user interaction). I have the batch file working but I need to auto-increment the date to the next day following standard monthly number of days.
I will try to work with what you have posted above Rambler.
Summary: IN Win 95, the XCOPY /Y will ignore any overwrite prompt, but in NT Server 4, the XCOPY command doesn't have a /Y parameter. The /D will update any newer file, but will that ignore any files, that is ...
Summary: Hi, I recreated a batch file which is set to run at night which copies a complete set of files from one drive to another drive using the XCOPY command. I setup an AT command so this batch file would...
Summary: Hi, Is there a move large files command, which can move the files from the source to the destinations and at the same time also create the directories, just like the Xcopy command. I want to use move ...