Kinook Software Forums

Kinook Software Forums (http://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (http://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Delete a directory (http://www.kinook.com/Forum/showthread.php?t=6)

JimRalph 03-06-2003 09:19 PM

Delete a directory
 
Is there an easy way to delete a directory and all subdirectories as a step in Visual Build Pro?

Thanks,
James

JimRalph 03-06-2003 09:20 PM

A Run Program command of

%DOSCMD% rd /s /q "drive+path"

would do it.

trippcr 03-06-2003 09:21 PM

Hi James,

Hmm, seems to delete everything for me. Looking at my step now I also have the "force" parameter for deleting read-only folders, maybe one of your folders (or subfolders) has the read-only attribute set.

vbld_FSO.DeleteFolder "path", True

Happy Deleting,
-Corey


All times are GMT -5. The time now is 01:11 PM.


Copyright 1999-2019 Kinook Software, Inc.