Dos Copy command and XP


Carol Hefling

I need to write a batch file that will copy files to a CD without user

I have tried the dos copy command (copy *.* d:) to send directly to the D
drive that is
using a UDF formatted cd. This receives an error message.

I have tried to copy these commands to the c:\documents and
settings\user\local settings\application data\microsoft\cd burning file.
This also recieves an error message.

Any help would be greatly appreciated.



if you are using Dos and long filenames then you MUST use quotes
copy *.* "c:\documents and settings\user\local settings\application
data\microsoft\cd burning file" (I just tried this and it works)
if this fails then what I have done is use the dos names eg
copy *.* c:\docume~1\user\local~1\applica~1\microso~1\cdburn~1
each part of path must be 8 characters or less.
To check the proper dos names perhaps use cmd, change to root
directory (cd \), the do a dir /s of the docu* (I tried this in XP
and the dir command showed all the long file names so i think you are
going to have to put your destination in quotes)
Jim Mccardle (e-mail address removed)

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question