Reply to Message Icon Go to Main Page Icon

Xcopy in Batch file

Original Message
Name: Renaissance Man
Date: June 20, 2007 at 03:49:25 Pacific
Subject: Xcopy in Batch file
OS: DOS
CPU/Ram: PIII/256
Model/Manufacturer: 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


Report Offensive Message For Removal


Response Number 1
Name: Mechanix2Go
Date: June 20, 2007 at 04:36:14 Pacific
Subject: Xcopy in Batch file
Reply: (edit)

Since it's one file, use COPY.


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

M2



Report Offensive Follow Up For Removal

Response Number 2
Name: jefro
Date: June 20, 2007 at 15:58:55 Pacific
Subject: Xcopy in Batch file
Reply: (edit)

Shouldn't it be xcopy source destination /y

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


Report Offensive Follow Up For Removal

Response Number 3
Name: Renaissance Man
Date: June 21, 2007 at 14:35:31 Pacific
Subject: Xcopy in Batch file
Reply: (edit)

Copy worked fine. Thanks!

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



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 in Batch file

Comments:

 


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