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

Open .vbs from Web Page

Status
Not open for further replies.

cwsstins

MIS
Aug 10, 2004
412
US
I've got a page that describes "what will happen if you click the link." I want for the user to click the link, then my .vbs script will run. However, when the link is clicked, a File Download box pops up asking if you'd like to Open, Save, or Cancel this file.

I've got the link set up as a regular <A> tag. Is there a better way to do this so that the file will just run without prompting?
 
Hello stinsman!

Make it a button. When the button is clicked, it performs a sub routine that calls your script.

Good luck!

He who has knowledge spares his words, and a man of understanding is of a calm spirit. Even a fool is counted wise when he holds his peace; when he shuts his lips, he is considered perceptive. - King Solomon
 
OK, I've got a button that calls a sub. At this point, the sub just opens a msgbox. How do I make the sub open another .vbs file?
 
An insecure way is to Execute the result of a ReadAll call.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
I'm trying:

Execute("\\server\directory\file.vbs")

as the sub. And then calling the sub with an image. This is not working.

 
Take a look at FileSystemObject.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Everything I'm finding for FileSystemObject explains how to create text files or determine if a file exists, etc. I want to run another .vbs.
 
PHV said:
Execute the result of a [highlight]ReadAll[/highlight] call

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top