Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   ATTRIB Run program step not working (https://www.kinook.com/Forum/showthread.php?t=17)

tgriggs603 03-06-2003 08:59 PM

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

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

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

-Tom


All times are GMT -5. The time now is 08:49 AM.


Copyright © 1999-2023 Kinook Software, Inc.