Kinook Software Forums

Kinook Software Forums (
-   [VBP] General Discussion (
-   -   ATTRIB Run program step not working (

tgriggs603 03-06-2003 09:59 PM

ATTRIB Run program step not working
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?


Too_Tall_Crown_Victoria 03-06-2003 10:00 PM


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"


tgriggs603 03-06-2003 10:00 PM

Thanks Tom
That worked. Still don't know why the %ATTRIB% macro wasn't working though.


All times are GMT -5. The time now is 05:41 AM.

Copyright 1999-2019 Kinook Software, Inc.