About XCOPY [Archive] - SpeedGuide.net Broadband Community

View Full Version : About XCOPY


Gort9k
10-29-03, 11:53 AM
Hola:

I'm trying to use XCOPY dos command from WINXP, but I always get the annoying message:

Does (filename) specify a file name or directory name on the target
(F = file, D = directory)

What I want to do is to copy a file with a new name. I've tryed with the COPY command but a get a message saying it is not recognised, so I'm stuck with XCOPY, but...

Is there any way to get rid of these blasted lines, and th S.O. knowing that I want to copy a file?

Thanks

The Dude
10-29-03, 02:44 PM
Maybe this will help xcopy syntax (http://www.robvanderwoude.com/ntxcopy.html) I think you want the /I switch.

Gort9k
10-29-03, 02:55 PM
Thanks for your advice, but I'm afraid it is not the /I switch. As I can see in the windows help, what this /I switch does is to asume that destiny must be a folder. What I want to do is to copy a file and create a like file with a different name in the same folder.

Thanks again

The Dude
10-29-03, 04:02 PM
I just opened a command window, copy command worked OK for me in win 2k. I created a text file test.txt, then typed
copy test.txt test1.txt
Ended up with the two files one a copy of the other.

Gort9k
10-30-03, 05:11 AM
Hi:

I'm sure I have not explained myself. I was refering to the XCOPY command, not COPY. At leats in my computer, (P IV 2.0 512 MB RAM, WINX XP (servicepack 1 & 2), whenever I try to use XCOPY I end with the same message:

Does (filename) specify a file name or directory name on the target
(F = file, D = directory)

I'll keep searching.

Thanks

The Dude
10-30-03, 04:59 PM
Originally posted by Gort9k
Hi:

I'm sure I have not explained myself. I was refering to the XCOPY command, not COPY. At leats in my computer, (P IV 2.0 512 MB RAM, WINX XP (servicepack 1 & 2), whenever I try to use XCOPY I end with the same message:

Does (filename) specify a file name or directory name on the target
(F = file, D = directory)

I'll keep searching.

Thanks

Sorry for the confusion, you mentioned trying to use the copy command in your first post. I used the copy command when it was just one file.
Copy xxxxxxxx.xxx xxxxxxxx.bak. In the days of DOS and windows 3.1 I used xcopy a lot. I liked being able to copy all the subdirectories "/s" and not having to use wildcards. I always got that prompt, I let xcopy create the destination folder for me. There is a utility called xxcopy (http://www.xxcopy.com/) , maybe it will do it for you.

Gort9k
10-31-03, 05:15 AM
Gracias de nuevo:

I have known xcopy from old, like copy. It is just that I can not see a way to get rid of this file/folder message. I'll try that xxcopy you mentioned.

Thanks