Computing.Net > Forums > Windows NT > Xcopy command

Xcopy command

Reply to Message Icon

Original Message
Name: lost
Date: October 23, 2000 at 12:06:13 Pacific
Subject: Xcopy command
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.

Thanks, Travis


Report Offensive Message For Removal


Response Number 1
Name: Rambler
Date: October 23, 2000 at 14:23:13 Pacific
Subject: Xcopy command
Reply: (edit)

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


Report Offensive Follow Up For Removal

Response Number 2
Name: Mikey
Date: October 24, 2000 at 13:30:22 Pacific
Subject: Xcopy command
Reply: (edit)

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.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Xcopy command

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software