Tech help

Jul 24, 2007 11:23

I want to run a batch job in Windows XP that copies my My Docs folder to Z:/. I don't know how to handle the long file names. Here's the command I'm using in the batch file:

xcopy /e /y /h C:\Documents and Settings\marjai\My Documents\ z:\MyDocBU\

I think the long file name is screwing things up. How do I make it work?

job, tech

Leave a comment

Comments 5

cardinalximinez July 24 2007, 15:46:02 UTC
Try quotation marks:

xcopy /e /y /h "C:\Documents and Settings\marjai\My Documents\" "z:\MyDocBU\"

Reply

marjai July 24 2007, 15:51:58 UTC
you know what's embarassing.
the quotes worked when I added "*.*" after My Docs...
Old Skool.

Reply

cardinalximinez July 24 2007, 15:53:55 UTC
*grin*

Reply


knobody July 24 2007, 16:06:41 UTC
marshall found me a program called ycopy. handy with my failing hd (yes, i *still* haven't reformatted it) because it can save a list of files that didn't copy correctly.

Reply


delwin July 24 2007, 18:01:15 UTC
you can also use the 8.3 versions of the paths.

Reply


Leave a comment

Up