Copy all files in a folder?
-
I am looking for some code that will copy all the files in one folder to another some where else?
-
I am looking for some code that will copy all the files in one folder to another some where else?
system("cmd.exe /c xcopy * destination"); Replace destination with the destination of your choice.
-
system("cmd.exe /c xcopy * destination"); Replace destination with the destination of your choice.
wont that just copy the file cmd.exe not a folder?
-
I am looking for some code that will copy all the files in one folder to another some where else?
Check out
SHFileOperation
. --Mike-- Just released - RightClick-Encrypt v1.4 - Adds fast & easy file encryption to Explorer My really out-of-date homepage Sonork-100.19012 Acid_Helm -
Check out
SHFileOperation
. --Mike-- Just released - RightClick-Encrypt v1.4 - Adds fast & easy file encryption to Explorer My really out-of-date homepage Sonork-100.19012 Acid_HelmHi, i was looking for it to be a console app? if that is possable because i dont know much about the workings of windows yet
-
Hi, i was looking for it to be a console app? if that is possable because i dont know much about the workings of windows yet
-
Hi, i was looking for it to be a console app? if that is possable because i dont know much about the workings of windows yet
You can use SHFileOperation in a console app, just use NULL for the parent window. --Mike-- Just released - RightClick-Encrypt v1.4 - Adds fast & easy file encryption to Explorer My really out-of-date homepage Sonork-100.19012 Acid_Helm
-
wont that just copy the file cmd.exe not a folder?
No, it will run CMD.EXE (the command processor) and the /C is perform automatically a command, in this case XCOPY *.* destination. -- LuisR ────────────── Luis Alonso Ramos Chihuahua, Mexico www.luisalonsoramos.com "Do not worry about your difficulties in mathematics, I assure you that mine are greater." -- Albert Einstein