Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Launch vbs script that uses InternetExplorer.Application

Posted on 2011-02-18
6
Medium Priority
?
586 Views
Last Modified: 2012-05-11
I have a asp .net application, where I need to launch an external site and perform a user login on that external site.

The way I did it was through vb script (.vbs file). I create a .vbs file (plain text) on the server, and let the web user download it and then they launch/run the vbs script and it does the login, so that all works fine.

The problem is that I don't want the user to download/Open the vbs file. The main problem is that when they download the text file, they can open it and view it's contents, plus the additional step of choosing "Open" or "Run" is not very intuitive/user friendly.

Is there a way I can run the vb script file without giving them an option to save it, or is there a way to do this any other way besides vb script? Again, the main goal is for my website to launch an external website and perform a login. I have seen some website somehow run scripting on external sites with just a click on their site. Not sure how its done, but that's what I need to do.
0
Comment
Question by:CAR-RESEARCH
  • 3
  • 3
6 Comments
 
LVL 14

Expert Comment

by:spiderfix
ID: 34941093
Inno Setup
http://www.jrsoftware.org/isinfo.php

It's free and ½ the developers in the World use it to create install packages.

You can set your *.vbs in the [Run} section of Inno and compile (build) an *.exe
You can "shave" the options down to a minimum so it has the lesser appearance of a program install.

This may not be the invisible type of execution you were looking for your *.vbs but it covers the area where you don't want your script readable.
Whether the user selects RUN or SAVE AS they will not be able to see any *.vbs script.
0
 

Author Comment

by:CAR-RESEARCH
ID: 34943553
I'll try it, but I'd still like to run the script without having any user interaction. Can this be done through javascript?
0
 
LVL 14

Expert Comment

by:spiderfix
ID: 34950086
JavaScript is not likely possible. If it were that easy we’d have virus running rampant with 70% of the
Web’s page loading.

Everything "inbound" is destine for some type of interaction from either the OS or other security stops.
Many  Vista and 7 users still have UAC enabled so you can’t even start a local browser without a halt
and a few buttons offered.

About the "quietest" way to bring something in is via FTP. Evoking it [once it's in] still has some issues
especially involving an executable like a VBScript.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 14

Expert Comment

by:spiderfix
ID: 34950102
If you can get your *.vbs into batch form you can run the batch file pretty much out-of-sight.
ss.bat fired up by *.vbs blindscript here as an example.

const blindscript = "ss.bat"
dim scriptobject, alienobject
set alienobject = CreateObject("Scripting.FileSystemObject")
set scriptobject = WScript.CreateObject("Wscript.Shell")
if not alienobject.FileExists(blindscript) then
 MsgBox "No script exists in that location!", vbOkOnly + vbCritical, "Error"
 WScript.Quit
end if
scriptobject.run blindscript, 0

Open in new window

0
 

Accepted Solution

by:
CAR-RESEARCH earned 0 total points
ID: 35975644
No solution found in above. I ended up writing a small program that installs on the client's machine to do this.
0
 

Author Closing Comment

by:CAR-RESEARCH
ID: 36001502
No other answer applied
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

916 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