XCOPY question

H

Howard Brazee

I have a batch file that I use to do some backups.

One line I have is:

Xcopy "%USERPROFILE%\My Documents\BRS Names and Numbers.doc" "c:\floppy\BRS
Names and Numbers.doc" < c:\belfry\y


Trouble is, when I run it, it asks me whether I am copying a file or a
directory. I can fix this by using a wild card, but I would rather specify
this file precisely. Is there a parm I can use?

Should I change it to

Xcopy "%USERPROFILE%\My Documents\BRS Names and Numbers.doc" "c:\floppy\BRS
Names and Numbers.doc" < c:\belfry\y <c:\belfry\f

??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Synchronizing files 18
Command question (IF EXIST) 5
Batch determining if device is mounted 1
Problem with Xcopy 9
xcopy 9
Need help on Bat file 9
This drive in batch files 6
Importance of physically backing up files 3

Top