Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return %ERRORLEVEL% from Run command?
Message
 
 
To
07/12/2005 16:27:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01075905
Message ID:
01075941
Views:
32
Amanda,

You can use API_APPRUN in .VCX form File #9477 or WSH Run method.
oShell = createobject("WScript.Shell")
lnRC = oShell.Run(lcRun, 0, .T.)
See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsmthrun.asp for details.


>I am attempting to launch a silent Tarma installer from VFP 9.
>I use the RUN command as such:
>
>lcRun = SYS(5)+curdir() + "sdt.exe /b0 /q2"
>run /n &lcRun
>
>This runs my EXE fine, but I need to know if the installation encountered any problems.
>Tarma will return an %ERRORLEVEL% if running from a batch file or command line. I would like to check this via VFP. I tried something simple like
>
>lnresult = run /n &lcRun
>
>Of course, this does not work. Any ideas?
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform