Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shell (function) with command line switches

Status
Not open for further replies.

nrm3

Technical User
Jan 26, 2009
12
US
What is the proper syntax to launch a exe file with command line switches.

I am trying to launch an application:

"C:\Program Files\Hekimian\React2001\bin\admin.exe" -h fipb2004.ffdc.sbc.com -p 6051 -f logicals -a cipc102.sldc.sbc.com -b 6051 -c west

rc%=shell("???",1)

 
I ran run/compile on the macro per the suggestion on a similar thread. Nothing changed.

I also tried changing the global variables to Dim per another suggestion. Again, nothing changed.
 
I got the solution to launch my application from
Attachmate support. Just FYI.

Sub Main
chdir "C:\Progra~1\Hekimian\React2~1\bin"
rc% = shell("admin.exe -h fipb2004.ffdc.sbc.com -p 6051 -f logicals -a cipc102.sldc.sbc.com -b 6051 -c west", 3)

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top