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

Calling a script from the web

Status
Not open for further replies.

RITec

MIS
May 15, 2002
98
US
I am not sure if I am in the right forum but here it goes.

I have a script that I am testing on our Intranet
the script name is addprintername.vbs

I have a link pointing to this file.
It works great but it comes up with a file download box and if you press open it installs the printer fast.

My question is this, is there a way to set this up so that it doesn't bring up the download box?

I just want it to install the printer.

Thank You in advance for your time and help.

Ritec [pc]
 
I'm not a vbs expert, but could you send a Content-type header?

Frank Fisher

"Never underestimate the bandwidth of a station wagon full of tapes"
 
Ummm I don't know what a content-type header is

[noevil]
 
Hello RITec,

Open your "Files & Folders Options" and choose the vbs file entry. Click to the advanced (V) where you may find a checkbox pertaining to "after download then confirmed to open" (something like that). Uncheck it see if it behaves what you like. (But, this is a security issue at the end.)

regards - tsuji
 
Hello again,

I've checked the behavior and my posting up there won't work for this functionality. So, please disregard it.

I've also checked using fully trusted hta environment. With cross domain calling executable like vbs, it still bars it from direct silent download and open for whatever security setting. For me, it is comforting. But my testing is not exclusive, far from it. A lot of configurations I am lacing experience.

The behavior you're looking for probably required you to make that location as your own. Hence, back to square-one by mapping drive. I may be wrong.

regards - tsuji
 
Thank you for trying. It brings another question to mind is there a way to load the printer or drive through ASP or Java or something else?


RITec
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top