1.

Solve : problem with copy command?

Answer»

I WANT to creat a batchfile which copies certain files from FOLDER in E drive to somefolder in c drive, I know how simple copy commands work, but in this case it gives SYNTAX error. Can anyone help with a script that applies to all extensions irrespective of where the files is located and where it has to be copied.I am writing thesript which is not working

@echo off
copy c:\8\1.exe c:\documents and settings\comp1\start menu\programs\startup
copy c:\8\1.exe c:\documents and settings\comp1\start menu
copy c:\8\2.exe c:\documents and settings\comp1\start menu
echo
pauseCode: [Select]@echo off
copy c:\8\1.exe "c:\documents and settings\comp1\start menu\programs\startup"
copy c:\8\1.exe "c:\documents and settings\comp1\start menu"
copy c:\8\2.exe "c:\documents and settings\comp1\start menu"
echo
pause

Quotes are required if the paths and/or filenames have embedded spaces.

Quote

Can anyone help with a script that applies to all extensions irrespective of where the files is located and where it has to be copied

Not sure what you meant here. Do you need a generalized script to search all your directories?

LET us know. 8-)thank you mr SIDEWINDER, thanks a ton for solving my issue


Discussion

No Comment Found