#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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 |
#3
|
|||
|
|||
Thanks Tom
That worked. Still don't know why the %ATTRIB% macro wasn't working though. -Tom |
Thread Tools | |
Display Modes | Rate This Thread |
|
|