10-29-2002 09:21 AM
10-31-2002 11:37 AM
04-27-2010 01:24 PM
04-27-2010 02:14 PM
04-27-2010 02:53 PM
Here is another way to delete all files within a directory.
LaunchExecutable ("cmd.exe /C rmdir C:\\junk2 /Q /S"); //deletes files from C:\junk2 folder and all dir and files within.
04-30-2010 01:09 AM
Hi Brian,
I suggest you to use the SHFileOperation() Windows function (in shell32.dll).
If you have the Win32 API Interface (previous name - Windows SDK) it's easy to do that, and you can copy, move and delete a full directory tree.
06-21-2011 07:41 AM
Hello, if the folder where you saved the files you want to delete is for example c: \ test, then:
char fileName [MAX_PATHNAME_LEN];
GetFirstFile ("c: \ \ test", 1, 1, 0, 0, 0, 0, fileName);
DeleteFile ("*.*");
and then use the function "DeleteDir ()" to delete the folder