Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread 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

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 08:58 AM.


Copyright 1999-2019 Kinook Software, Inc.