|
Answer» hey friends, i want to know how to add white spaces in a DOS command. e.g. i have a folder named 'my documents' & another one named 'my archives'. now, if i want to copy some FILES from 'my documents' to 'my archives' using any DOS command, like 'copy' or 'xcopy', the syntax will be: copy c:\my documents\*.* d:\my archives (Using copy) OR xcopy c:\my documents\ d:\my archives (Using Xcopy).
The system throws the error: Invalid number of the parameters
Is there any WAY to do this, apart from renaming the concerned folders(that is very frustrating, i tell u)?
Did you try this? Code: [Select]xcopy "c:\my documents\" "d:\my archives" But why no do it in windows?Quote from: md_ahirrao on January 15, 2009, 11:46:37 PM hey friends, i want to know how to add white spaces in a DOS command. e.g. i have a folder named 'my documents' & another one named 'my archives'. now, if i want to copy some files from 'my documents' to 'my archives' using any DOS command, like 'copy' or 'xcopy', the syntax will be: copy c:\my documents\*.* d:\my archives (Using copy) OR xcopy c:\my documents\ d:\my archives (Using Xcopy).
The system throws the error: Invalid number of the parameters
Is there any way to do this, apart from renaming the concerned folders(that is very frustrating, i tell u)?
yes. put quotes around the names.
Code: [Select]copy "c:\my documents\*.*" "d:\my archives" xcopy "c:\my documents\" "d:\my archives"
but why not just use explorer to copy.
EDIT: LOL.... beat me to it...thanks BC_programmer. thanks Geek-9pm it worked
|