cmd - How can I copy a file from one dir to another with a .bat file -


i have code:

xcopy /s c:\documents , setting\windowsxp-vm\desktop\usb\* c:\documents , setting\windowsxp-vm\desktop\startup  pause 

saved in .bat file , when run it says invalid number of parameters have looked on google abit , cant figure out tried putting dest in quotes , gave me error.

the spaces throwing things off; wrap paths in quotes:

xcopy /s "c:\documents , setting\windowsxp-vm\desktop\usb\*" "c:\documents , setting\windowsxp-vm\desktop\startup"  pause 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -