Dos Copy command and XP

  • Thread starter Thread starter Carol Hefling
  • Start date Start date
C

Carol Hefling

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

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.

Thanks,
 
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)
 
Back
Top