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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to run an EXE file from Hyperlink and add paramater

Status
Not open for further replies.
Mar 14, 2002
711
US
I am trying to run an application from the Intranet page and pass a parameter so that when the user selects open, it will open the application and pass the paramater (file name to open) in the same command line - has anyone ever done this successfully??

Thanks in advance,
 
see this thread in this forum: thread215-795695. it talks about how to use vbscript to run an application using the "shell" object. while the basic syntax is
Code:
shellobject.run("program.exe")
there's no reason why you can't tag on some paramaters like
Code:
shellobject.run("program.exe para1 para2")

glenn
 
Thanks guys! What I did was this, I created a batch file that opens the file using the correct program and it works great! Now I will try to find out how to "automatically" open the file without prompting the client to open/save.
 
nicks, if you look at the above referenced thread, it'll show you how to do that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top