Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Shell (function) with command line switches

Shell (function) with command line switches

Shell (function) with command line switches

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



RE: Shell (function) with command line switches

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.

RE: Shell (function) with command line switches

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close