PDA

View Full Version : ATTRIB Run program step not working


tgriggs603
03-06-2003, 09:59 PM
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

Too_Tall_Crown_Victoria
03-06-2003, 10:00 PM
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

tgriggs603
03-06-2003, 10:00 PM
Thanks Tom
That worked. Still don't know why the %ATTRIB% macro wasn't working though.

-Tom