Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 4.50 average. Display Modes
  #1  
Old 03-06-2003, 09:19 PM
JimRalph JimRalph is offline
Registered User
 
Join Date: 12-02-2002
Posts: 2
Delete a directory

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

Thanks,
James
Reply With Quote
  #2  
Old 03-06-2003, 09:20 PM
JimRalph JimRalph is offline
Registered User
 
Join Date: 12-02-2002
Posts: 2
A Run Program command of

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

would do it.
Reply With Quote
  #3  
Old 03-06-2003, 09:21 PM
trippcr trippcr is online now
Registered User
 
Join Date: 12-10-2002
Posts: 4
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 10:32 AM.


Copyright © 1999-2023 Kinook Software, Inc.