Kinook Software Forum

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

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-16-2007, 06:52 PM
smckeown smckeown is online now
Registered User
 
Join Date: 05-01-2007
Posts: 18
attrib -r or %(ATTRIB... on a VBP bld file

Hi,

In order to get my nightly builds to run and NOT leave VBP up with the save dialog, the VBP build saves out the bld file.

(http://www.kinook.com/Forum/showthre...&threadid=2655)

The wrinkle is that often the build scripts are read only at the start of the build.

So, I would like to remove the read-only file attribute with the DOS command "attrib -r *.bld". I added the "Run program" step with the dos command and the VBP pro command, but both fail if the scritp is flagged read only.


I am using the DOS command
%DOSCMD% attrib -r c:\mybuildtest\*.bld

I am using the VBP attrib command
%ATTRIB(%PROJDIR%\*.bld, R)%

BUT... when the file is read only and I test the step from the VBP IDE, the 'save script' dialog is immedialy displayed. (Thi of couse happend when building too.)

It appears the VBP before shelling out attempts to save the current script. Since the script is read only, the save fails and the dialog is displayed.

Any way to 'turn off' auto save before running a DOS command?

Thanks,
Sheryl
Reply With Quote
 


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 06:47 PM.


Copyright © 1999-2023 Kinook Software, Inc.