|
Answer» How do you copy files into a directory that have a space [ ] in the directory gives me a syntax error and the files don't copy
help me please theirs two ways, easyest way beeing to just put it in quotations..
echo off copy "c:\DOCUMENTS and SETTINGS\%username%\desktop\file.dll"
the NEXT is ~1 , for example..
echo off copy c:\docume~1\%username%\desktop\file.dll ,
most files and folders have pre set ~1 with them, its usualy the first word minus the last letter of the first word PLUS ~1 , sometimes its the first word combined with a bit of the second and ~1 , cd userse~1 but it COULD be anything. put double quotes around the directory namethank you
Quote from: ghostdog74 on April 06, 2007, 11:02:23 PM put double quotes around the directory name
"copy c:\docume~1\%username%\desktop\file.dll"
|