Solved

.vbs call to launch from Firefox

Posted on 2006-07-20
7
663 Views
Last Modified: 2012-08-13
Ok.
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.

--Kelly
Need answere ASAP
0
Comment
Question by:KellyCraig
  • 3
  • 3
7 Comments
 
LVL 24

Expert Comment

by:Kenneniah
Comment Utility
The default handler for scripts in XP is wscript.exe
0
 
LVL 4

Author Comment

by:KellyCraig
Comment Utility
Great, but that still returns an error in firefox saying Its not a valid handler
0
 
LVL 23

Expert Comment

by:gecko_au2003
Comment Utility
stupid thought here but couldnt you do something like so in the web page :

set wshshell = CreateObject("WScript.Shell")

wshshell.run "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 )
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 4

Author Comment

by:KellyCraig
Comment Utility
No no, I like the idea.

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

Could I get an exact syntax quote?

--Kelly
0
 
LVL 23

Accepted Solution

by:
gecko_au2003 earned 500 total points
Comment Utility
<html>
<body>

<script type="text/vbscript">

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

</script>

</body>
</html>

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 :

"Name_Of_File.html"

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

Expert Comment

by:gecko_au2003
Comment Utility
Did that work with firefox ok ?
0
 
LVL 4

Author Comment

by:KellyCraig
Comment Utility
No, However I plan to use a link that will open a new page in IE to just run the script.

--Kelly
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

If you build your web application in Visual Studio you'll get at least a few binaries, or .DLL, files in your bin folder. However, there is more compiling to be done. Normally this would happen when an ASP.NET resource within the web site is request…
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now