Hi everyone,
in my Main thread , i want to copy some files from the Hard disk to the Temp folder . I am using _spawnlp command
_spawnlp( P_WAIT, "cmd", "cmd", "/c", "copy", from.c_str(), to.c_str(), NULL );
It is functioning properly but the problem is on the runtime it shows the Command window for a while which is not required.
Does anyone knows how to do this ???
thanks
How to Copy Files in the main thread
-
- Experienced Solver
- Posts: 96
- Joined: Fri Jun 17, 2005 1:53 pm
- Location: Germany
- Contact:
Check out the file commands. It is much easier to use the calls from wxWidgets for that, they will handle the platform independent issues for it.
http://www.wxwidgets.org/manuals/2.6.0/ ... wxcopyfile
- Jorgen
http://www.wxwidgets.org/manuals/2.6.0/ ... wxcopyfile
- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
-
- Experienced Solver
- Posts: 96
- Joined: Fri Jun 17, 2005 1:53 pm
- Location: Germany
- Contact:
Thanks
hi Jorgen,
I tried wxCopyFile , its functioning as i required.
Tnaks a lot
I tried wxCopyFile , its functioning as i required.
Tnaks a lot