?
Solved

Executing VBScript

Posted on 2007-03-29
5
Medium Priority
?
1,295 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
[X]
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
5 Comments
 
LVL 15

Expert Comment

by:JackOfPH
ID: 18821550
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 1000 total points
ID: 18821552
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 1000 total points
ID: 18821562
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
ID: 18821602
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
ID: 18821795
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Suggested Courses

770 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