Kinook Software Forum

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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-06-2003, 08:59 PM
tgriggs603 tgriggs603 is offline
Registered User
 
Join Date: 03-04-2003
Posts: 2
ATTRIB Run program step not working

Hi
I'm calling a "Run Program" step in my build %ATTRIB(C:\Build\project\bin\Release\project.exe, -r )%

It keeps failing and I can't figure out why!

Failed to create process: The system cannot find the file specified.
Step 'Set target exe non-read only' failed
Build ended.

When I type the same instructions on the command-line attrib -r "c:\build\project\bin\release\project.exe" it works fine...Any ideas?

-Tom
Reply With Quote
  #2  
Old 03-06-2003, 09:00 PM
Too_Tall_Crown_Victoria Too_Tall_Crown_Victoria is online now
Registered User
 
Join Date: 01-14-2003
Posts: 44
Tom,

This is the syntax to use in the Run Program step:

C:\WINNT\system32\cmd.exe /C ATTRIB -R "c:\build\project\bin\release\project.exe"

Visual build has a system macro so that your command will look like this:

%DOSCMD% ATTRIB -R "c:\build\project\bin\release\project.exe"

Tom
Reply With Quote
  #3  
Old 03-06-2003, 09:00 PM
tgriggs603 tgriggs603 is offline
Registered User
 
Join Date: 03-04-2003
Posts: 2
Thanks Tom
That worked. Still don't know why the %ATTRIB% macro wasn't working though.

-Tom
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 10:06 AM.


Copyright © 1999-2023 Kinook Software, Inc.