Computing.Net > Forums > Disk Operating System > xcopy with long filename

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 with long filename

Reply to Message Icon

Name: Bill Lockie
Date: October 18, 2003 at 15:42:15 Pacific
OS: w98se
CPU/Ram: 256
Comment:

I get the error msg "Invalid number of parameters" wshen I try to use the following command from a dos window.

xcopy /s/e c:\My Documents\Calendar Formats\*.* c:\amiscdata\calendar\

I;m sure the problem is probaly the long file names used.
I wish to copy the contents of my "documents/calendar formats".
How do I do this in DOS?
Bill



Sponsored Link
Ads by Google

Response Number 1
Name: Dave357
Date: October 18, 2003 at 18:56:43 Pacific
Reply:

My DOS is more than a bit rusty, but try enclosing the paths within quotes, as:

xcopy /s/e "c:\My Documents\Calendar Formats\*.*" "c:\amiscdata\calendar\"

HTH

Dave


0

Response Number 2
Name: Dan Penny
Date: October 19, 2003 at 02:14:01 Pacific
Reply:

xcopy /s/e "c:\My Documents\Calendar Formats\"*.* "c:\amiscdata\calendar\"

(First endquote before the *.*)



0

Response Number 3
Name: Dave357
Date: October 19, 2003 at 20:50:03 Pacific
Reply:

Thanks for watching my back, Dan.

I warned you that my DOS was a bit rusty, & I'm on an XP machine right now, so I couldn't test it. :)

Dave


0

Response Number 4
Name: Dan Penny
Date: October 20, 2003 at 02:34:00 Pacific
Reply:

No problem Dave. We Chi-Town boys have to stick together. ;>)


0

Response Number 5
Name: RussellR
Date: October 20, 2003 at 18:06:39 Pacific
Reply:

i dont see why the end quote must be before the *.* .... but im also on an XP machine so i cant test it heh

you dont need the quotes around c:\amiscdata\calendar\ either, cos theres no spaces


0

Related Posts

See More



Response Number 6
Name: Dan Penny
Date: October 20, 2003 at 19:55:32 Pacific
Reply:

"you dont need the quotes around c:\amiscdata\calendar\ either, cos theres no spaces"

You do need the quotes because amiscdata is longer than eight characters.


0

Response Number 7
Name: Dan Penny
Date: October 20, 2003 at 20:18:02 Pacific
Reply:

"i dont see why the end quote must be before the *.* .... but im also on an XP machine so i cant test it heh"

Sorry, I forgot about the first part above; The end quote "defines" the path which is out of the 8.3 ~directory structure~, while the wildcards are a separate element of the ~command~ you're trying to execute. Did I say that right? ;>)


0

Response Number 8
Name: RussellR
Date: October 21, 2003 at 18:22:13 Pacific
Reply:

heh, its simpler to put the quotes around the whole thing, it will work if the quotes are before the *.* or after it ... personal preference really :)


0

Sponsored Link
Ads by Google
Reply to Message Icon






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 with long filename

copying files with long filenames www.computing.net/answers/dos/copying-files-with-long-filenames/4586.html

REPLACE.EXE with long filenames www.computing.net/answers/dos/replaceexe-with-long-filenames/255.html

dir>list.txt with long filenames? www.computing.net/answers/dos/dirlisttxt-with-long-filenames/14125.html