Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: VBScripts Not Working

05 Nov 2010   #1
Ken9251

Windows 7 Home Premium 64-bit
 
 
VBScripts Not Working

Hello. I use vbscripts a lot to keep my desktop icons to a minimum, However, when I tried to use them with Widows 7 they did not work. My problem is best illustrated by a simple example. I have a file "Hello World.vbs" which has a single line of code :

Wscript.Echo "Hello World"

If I launch the script, by double clicking on the file, in Windows Vista, I get a message box with "Hello World" in it. The same action in Windows 7 opens the file in Notebook and displays the line of code as if expecting me to edit the file.

Ken


My System SpecsSystem Spec
.
05 Nov 2010   #2
Pusspa

 
 

works fine here, i just made a text doc with Wscript.Echo "Hello World" then renamed it Hello World.vbs and double clicked it and i got this


Attached Images
VBScripts Not Working-capture.png 
My System SpecsSystem Spec
05 Nov 2010   #3
Ken9251

Windows 7 Home Premium 64-bit
 
 

Thanks Pusspa. Trouble is I don't see where to go from here.
My System SpecsSystem Spec
.

05 Nov 2010   #4
Dwarf

Windows 8.1 Pro RTM x64
 
 

Hi Ken and welcome to Windows 7 Forums

Have a look at this Tutorial and ensure that the .vbs extension is set to its default action.

Default File Type Associations - Restore
My System SpecsSystem Spec
05 Nov 2010   #5
Loki

Windows 7 Ultimate x64
 
 

Have you checked: Control Panel\All Control Panel Items\Default Programs\Set Associations
and check if .vbs is set to Windows Script Host.

Loki
My System SpecsSystem Spec
05 Nov 2010   #6
Loki

Windows 7 Ultimate x64
 
 

Ah Dwarf beat me! RAT's
My System SpecsSystem Spec
06 Nov 2010   #7
Ken9251

Windows 7 Home Premium 64-bit
 
 

Thanks Guys. The file association program was set to Notepad (by the Easy Transfer program?). I changed this to Windows Script Host, as suggested, and all is well.

Great forum!

Ken
My System SpecsSystem Spec
06 Nov 2010   #8
Dwarf

Windows 8.1 Pro RTM x64
 
 

You're welcome, Ken. I'm pleased that you've resolved your issue.
My System SpecsSystem Spec
Reply

 VBScripts Not Working




Thread Tools




Similar help and support threads
Thread Forum
Sound on Laptop and Desktop Randomly Stops Working and Working
So recently the sound on my desktop and my laptop has stopped working. For seemingly no reason. I really don't understand it. I first noticed it with my desktop. The sound just randomly stopped working. But not...entirely. It's really strange and complicated what's been happening, so bare with...
Sound & Audio
My mouse Usb port stops working. but starts working again after a day.
Hello! I'm using my laptop in a desktop mode. but some days when i start up the computer the mouse is on (Sees the red optical light.) But the cursor dont move when i move the mouse. when i drag the cable out and in again the ligh wont turn on. i change usb port and it works. 1-3 days later the...
General Discussion
Internet not working, windows update, ping, DNS, etc. working fine
Hello, I've got a Dell laptop here that isn't functioning properly. I can't get this to work for the life of me! I am currently using this laptop with a different hard drive, it's the install on the SSD that doesn't work. I know that the quick fix would be to simply reload windows, but I don't...
Network & Sharing
Windows 7 not updating, Indexing not working, search not working, FYI
I had been working an issue where the search function was not working correctly, I then noticed that Indexing was not working and I could not update windows. I wanted to post this in case someone had similar issues, it took me a while to figure this one out... The problem likely started when I...
Windows Updates & Activation
DVD (not working) not found in Device manager, 1 USB port not working
I have a HP dv6910us Pavilion and the DVD is not listed in Device Manager. DVD Tray opens and light comes on but does not play DVD. 1st USB port on left side gets - USB Device Not Recognized.One under it works and one on the right side works. OS Windows7 Ultimate. It is running kind of screwy so...
Hardware & Devices
HDMI Sound randomly not working - test in settings gets it working?
I have started having an issue over the past week (config/drivers/etc not changed in months) where sound will randomly not be output by HDMI. System config/specs... Win7 SP1 all patches, nearly a stock install... only running WMC and XBMC. Only 3rd part stuff installed are SpeedFan an ATI...
Sound & Audio


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 04:41.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App