Computing.Net > Forums > Windows NT > Xcopy command

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

Reply to Message Icon

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.

Thanks, Travis



Sponsored Link
Ads by Google

Response Number 1
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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


battery removal NT and AppleShare IP



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: Xcopy command

XCOPY command www.computing.net/answers/windows-nt/xcopy-command/14955.html

XCOPY & AT commands www.computing.net/answers/windows-nt/xcopy-amp-at-commands/5849.html

move files command www.computing.net/answers/windows-nt/move-files-command/20323.html