How to run a VBS scriptfile

A

Alex Keel

I need to run a 'VBS' file, but when I double click on it opens in Notepad. I
suppose it has to do with the file association, but I'm lost on this.
 
M

Mark L. Ferguson

One thing to try is a command line attempt

wscript *.VBS

or

cscript *.VBS

If these work, the file association for vbs is changed to notepad (run
'control folders' and see the filetypes tab)

If those fail, you may have a Policy or registry setting that is preventing
scripts from running.



--
Use the "Ratings" feature. It helps the new users.
Need more Answers? Try the new Microsoft Answers pages.
http://answers.microsoft.com/en-us/windows/dd228912.aspx
Mark L. Ferguson MS-MVP
https://mvp.support.microsoft.com/profile/Mark.Ferguson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top