Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Conditional Delete Folder (https://www.kinook.com/Forum/showthread.php?t=876)

dprice 02-07-2005 04:04 PM

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

kinook 02-07-2005 04:58 PM

One possibility: http://www.kinook.com/Forum/showthread.php?threadid=228


All times are GMT -5. The time now is 04:10 PM.


Copyright © 1999-2023 Kinook Software, Inc.