Deleting files from floppy
-
Hi, What is the best method for deleting all files and folders from a floppy (programatically) Sameer
-
Hi, What is the best method for deleting all files and folders from a floppy (programatically) Sameer
You can use SHFileOperation. Use FO_DELETE and make pFrom "A:\*.*" That should delete the files in the root directory as well as recursively delete all directories and sub-directories. Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Buy it, read it and admire me :-)
-
Hi, What is the best method for deleting all files and folders from a floppy (programatically) Sameer
That depends on your view of "best", but I think the following might work:
system("del /q/s a:\\*");
Maybe you need to expand the environment variableComSpec
(case is unimportant) and prepend it to the command.