Computing.Net > Forums > Disk Operating System > Xcopy in Batch file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Xcopy in Batch file

Reply to Message Icon

Name: Renaissance Man
Date: June 20, 2007 at 03:49:25 Pacific
OS: DOS
CPU/Ram: PIII/256
Product: Dell
Comment:

I'm rusty.

Trying to xcopy one file over another in the same directory, and I keep getting "Is this a directory or a file" message. How can I avoid or answer this in a batch file? I thought it wasn't supposed to ask this unless there were multiple files involved.

Does it make any difference if I first delete the original file and copy a new file in it's place or if I just overwrite it?

This is the actual line (split for clarity):
xcopy /y
c:\windows\applic~1\mozilla\firefox\profiles\8t7enr~1.def\gdcookie.txt
c:\windows\applic~1\mozilla\firefox\profiles\8t7enr~1.def\cookies.txt



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: June 20, 2007 at 04:36:14 Pacific
Reply:

Since it's one file, use COPY.


=====================================
If at first you don't succeed, you're about average.

M2



0

Response Number 2
Name: jefro
Date: June 20, 2007 at 15:58:55 Pacific
Reply:

Shouldn't it be xcopy source destination /y

I read it wrong and answer it wrong too. So get off my case you goober.


0

Response Number 3
Name: Renaissance Man
Date: June 21, 2007 at 14:35:31 Pacific
Reply:

Copy worked fine. Thanks!

xcopy source destination /y didn't make any difference.



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Xcopy in Batch file

What does the % mean in batch files? www.computing.net/answers/dos/what-does-the-mean-in-batch-files/5925.html

Variables in batch files www.computing.net/answers/dos/variables-in-batch-files/12289.html

Choice in batch files on NT4-DOS www.computing.net/answers/dos/choice-in-batch-files-on-nt4dos/11474.html