Command prompt "COPY" command not working in brand new Windows

Command prompt "COPY" command not working in brand new Windows

Post by Q01EICJDT1 » Thu, 07 Feb 2008 02:44:02


Hi SG,
Thanks for your reply!
The contents of my batch file is:

PATH C:\; C:\Windows; C:\Windows\System32
COPY C:\Program Files\BioClinic\*.*

Just two simple lines and this batch file was working fine in the old laptop
computer that was running Windows XP. I copied the same batch file to the
brand new DELL latop that came with Windows Vista and NOT working.
Thanks, Pete
 
 
 

Command prompt "COPY" command not working in brand new Windows

Post by Bob » Thu, 07 Feb 2008 03:47:36

There is no destination given in your file and there's no need for the PATH
command.

Try this:
COPY (or XCOPY) <source> <destination>
Use the "/y" switch to avoid the overwrite prompt.


"CMD "COPY" command not working in Vista"

 
 
 

Command prompt "COPY" command not working in brand new Windows

Post by Q01EICJDT1 » Thu, 07 Feb 2008 04:40:02

Bob,
Thanks for pointing out my omission!
Actually it is : "COPY C:\Program Files\BioClinic\*.* F:\" ,where the "F:"
being my USB memory stick.

I thought may be the Vista came with no "COPY" command available and was
looking for Vista CD but it was not in the box.

But you have a good suggestion to try with XCOPY and I will do that when I
get to the laptop next time because it's not with me now.
Thanks much, Pete
 
 
 

Command prompt "COPY" command not working in brand new Windows

Post by Ronnie Ver » Thu, 07 Feb 2008 05:30:02

Pete

Check out 'Robocopy'. Much more powerful and with many more options.

Robocopy /?

--

Ronnie Vernon
Microsoft MVP
Windows Desktop Experience


"CMD "COPY" command not working in Vista"
 
 
 

Command prompt "COPY" command not working in brand new Windows

Post by Bob » Thu, 07 Feb 2008 06:20:09

You're welcome Pete.

"CMD "COPY" command not working in Vista"