Kinook Software Forum

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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-07-2005, 05:04 PM
dprice dprice is online now
Registered User
 
Join Date: 01-19-2005
Posts: 13
Conditional Delete Folder

I've created a "Run Program" step that deletes a folder:

%DOSCMD% rmdir /S /Q %PROJDIR%\SomeFolder

I added a Conditional Build Rule to Build only if macro or expression:

[vbld_FSO.FolderExists("%PROJDIR%\SomeFolder")]

is equal to -1

However, it seems to ignore this condition. If I create the folder and run the step it works. If I run it again, the step fails. I used that shift-trick to evaluate the expression and it is working. This must be another case where I'm missing something obvious! Any suggestions?

Thanks!
Derek
Reply With Quote
  #2  
Old 02-07-2005, 05:58 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
One possibility: http://www.kinook.com/Forum/showthread.php?threadid=228
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 11:24 PM.


Copyright © 1999-2023 Kinook Software, Inc.