.vbs call to launch from Firefox

Posted on 2006-07-20
Last Modified: 2012-08-13
We have a .vbs script that will remove temp files fo Cisco VPN after install.
And we have it on a web page to be downl0aded and ran, however that is proving to be more than some can handle.
I want to use an application call on the site through Firefox (the company standard) that will lanch the vbs script when they click the link.

For example explorer://something.vbs

How do I do this?

Note: This needs to be a fast answere cna cannot involve the modification of the client side software.

Need answere ASAP
Question by:KellyCraig
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 24

Expert Comment

ID: 17150238
The default handler for scripts in XP is wscript.exe

Author Comment

ID: 17150269
Great, but that still returns an error in firefox saying Its not a valid handler
LVL 23

Expert Comment

ID: 17150700
stupid thought here but couldnt you do something like so in the web page :

set wshshell = CreateObject("WScript.Shell") "script.vbs"    ' You can include the path if you want

with it being inside of a webpage you may need to use set wshshell = Wscript.CreateObject("WScript.Shell") or something like that.

It may ask the end user are you sure you want to run this or something like that though.

Was just a thought ( possibly a silly one at that )
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now


Author Comment

ID: 17154286
No no, I like the idea.

What language is that, and what extension would the page be?

Could I get an exact syntax quote?

LVL 23

Accepted Solution

gecko_au2003 earned 500 total points
ID: 17154334

<script type="text/vbscript">

set wshshell = CreateObject("WScript.Shell") "script.vbs"    ' You can include the path if you want



Then open notepad, copy and paste the above into it, then save it as a html page by going to file -> save as --> then in the name textbox where you give it a name put a speach mark ie " and then the name.html and then another speach mark so it looks like so :


Then click on save and save it where you want and you should be good to go
LVL 23

Expert Comment

ID: 17280418
Did that work with firefox ok ?

Author Comment

ID: 17287957
No, However I plan to use a link that will open a new page in IE to just run the script.


Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question