Solved

Executing VBScript

Posted on 2007-03-29
5
1,288 Views
Last Modified: 2008-01-09
How do you execute a VBScript application in Windows XP Pro?  When I double-click the file; the file is opened up with notepad.
0
Comment
Question by:Ray Turner
5 Comments
 
LVL 15

Expert Comment

by:JackOfPH
Comment Utility
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/Q_21982231.html

Visit the link, I think it may help you... post if you have questions
0
 
LVL 14

Accepted Solution

by:
Burns2007 earned 250 total points
Comment Utility
Is it saved as a .vbs extension? If so, someone has changed the association.

Right click on it and go open with.
If it is there under recommended, select "Microsoft Windows Based Script Host" and tick Always use the selected...

If it is not there in the list, you'll have to click on browse and go to "C:\WINDOWS\System32\WScript.exe"
0
 
LVL 15

Assisted Solution

by:JackOfPH
JackOfPH earned 250 total points
Comment Utility
Try this step:

Go to Windows explorer window, choose Folder options from the Tools menu, then clicking on the File Types tab.  Scroll down until you see VBS, then highlight it and click on the Restore button.

0
 
LVL 12

Expert Comment

by:viralypatel
Comment Utility
has already been answered somewhere ...

here is it again for ur reference

You can change the file association back by opening a Windows explorer window, choosing Folder options from the Tools menu, then clicking on the File Types tab.  Scroll down until you see VBS, then highlight it and click on the Restore button - this will set it back to its default options.

If you want to edit teh file rather than run it, right click on the file and choose Edit from the popup menu, not Open.  It will automatically open it in Notepad for you
0
 
LVL 5

Expert Comment

by:WesleySaysHi
Comment Utility
In order to run your VBScript file by double-clicking the file, you need the Windows Script Host. You can find refferences here:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sag_wshtopnode.mspx

Windows Script Host is part of Internet Explorer and you should have it. In case that something happened to it, then go at: http://support.microsoft.com/kb/188135 and see the links listed under "On This Page". You will se there a title called: "Installing Windows Script Host"

The file association problem has been discussed here, therefore I will not mention it any more.

There is also a command line version of the Windows Script Host: CSCript.exe about which you can find refferences at the address below, just in case you're interested: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/cscript_overview.mspx?mfr=true

Wesley
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

728 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

10 Experts available now in Live!

Get 1:1 Help Now