Solved VBScripts Not Working

Ken9251

New member
Local time
10:14 AM
Messages
26
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 Computer

Computer Manufacturer/Model Number
Dell Studio XPS 8100
OS
Windows 7 Home Premium 64-bit
CPU
Intel Core i7 Processor 870
Memory
8 gb
Graphics Card(s)
1GB NVIDIA GeForce GTX 460
Monitor(s) Displays
Dell ST2320L
Hard Drives
1TB ATA
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
 

Attachments

  • Capture.PNG
    Capture.PNG
    3.8 KB · Views: 546

My Computer

Computer Manufacturer/Model Number
HP dv6519tx
OS
Windows 7 Ultimate x64
CPU
1.80 GHz Intel Core 2 Duo processor T7100
Memory
3 gig ddr2
Graphics Card(s)
NVIDIA GeForce 8400M GS
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
15.4” WXGA High Definition BrightView Widescreen
Screen Resolution
1280 x 800
Hard Drives
Hitachi 320 GB (5400 rpm)
PSU
90 W AC Power Adapter
Cooling
Kitchen plate under the lappy
Keyboard
101 key compatible
Mouse
Touch Pad with On/Off button and dedicated vertical Scroll
Internet Speed
Three Wireless internet prepaid using E160G USB dongle
Thanks Pusspa. Trouble is I don't see where to go from here.
 

My Computer

Computer Manufacturer/Model Number
Dell Studio XPS 8100
OS
Windows 7 Home Premium 64-bit
CPU
Intel Core i7 Processor 870
Memory
8 gb
Graphics Card(s)
1GB NVIDIA GeForce GTX 460
Monitor(s) Displays
Dell ST2320L
Hard Drives
1TB ATA

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dwarf Dwf/11/2012 r09/2013
OS
Windows 8.1 Pro RTM x64
CPU
Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Bridge) (OC 4.4GHz)
Motherboard
ASRock Z77 Extreme4-M
Memory
4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB)
Graphics Card(s)
MSI GeForce GTX770 Gaming OC 2GB
Sound Card
Realtek High Definition on board solution (ALC 898)
Monitor(s) Displays
ViewSonic VA1912w Widescreen (VGA)
Screen Resolution
1440x900
Hard Drives
OCZ Agility 3 SSD 120GB SATA III x2 (RAID 0)
Samsung HD501LJ 500GB SATA II x2
Hitachi HDS721010CLA332 1TB SATA II
Iomega 1.5TB Ext USB 2.0
WD 2.0TB Ext USB 3.0
PSU
XFX Pro Series 850W Semi-Modular
Case
Gigabyte IF233
Cooling
1 x 120mm Front Inlet 1 x 120mm Rear Exhaust
Keyboard
Microsoft Comfort Curve Keyboard 3000 (USB)
Mouse
Microsoft Comfort Mouse 3000 for Business (USB)
Internet Speed
NetGear DG834Gv3 ADSL Modem/Router (Ethernet) ~4.0 Mb/s (O2)
Antivirus
Avast! 8.0.1497
Browser
IE 11
Other Info
Optical Drive: HL-DT-ST BD-RE BH10LS30 SATA Bluray
Lexmark S305 Printer/Scanner/Copier (USB)
WEI Score: 8.1/8.1/8.5/8.5/8.25
Asus Eee PC 1011PX Netbook (Windows 7 x86 Starter)
Have you checked: Control Panel\All Control Panel Items\Default Programs\Set Associations
and check if .vbs is set to Windows Script Host.

Loki :cool:
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 7 Ultimate x64
CPU
AMD A10-7850 Quad Core 3.7 GHz
Motherboard
MSI MS-7900
Memory
16 GB
Graphics Card(s)
MSI Radeon R7 250 OC Crossfired with A10 AMD Radeon R7
Monitor(s) Displays
Samsung SyncMaster XL2370HD, ViewSonic VA1912wb
Screen Resolution
1920*1080, 1440*900
Hard Drives
128 GB SSD
512 GB SSD
500 GB HDD
PSU
Corsair CX500
Case
Rosewill THOR V2 BLACK
Keyboard
Logitech G15
Mouse
CMSTORM MS2K
Internet Speed
ATT U-Verse
Antivirus
Microsoft Security Essentials, MalwareBytes
Browser
Firefox (lastest stable) with NoScript
Other Info
Just a humdrum little system.
Ah Dwarf beat me! RAT's :D
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 7 Ultimate x64
CPU
AMD A10-7850 Quad Core 3.7 GHz
Motherboard
MSI MS-7900
Memory
16 GB
Graphics Card(s)
MSI Radeon R7 250 OC Crossfired with A10 AMD Radeon R7
Monitor(s) Displays
Samsung SyncMaster XL2370HD, ViewSonic VA1912wb
Screen Resolution
1920*1080, 1440*900
Hard Drives
128 GB SSD
512 GB SSD
500 GB HDD
PSU
Corsair CX500
Case
Rosewill THOR V2 BLACK
Keyboard
Logitech G15
Mouse
CMSTORM MS2K
Internet Speed
ATT U-Verse
Antivirus
Microsoft Security Essentials, MalwareBytes
Browser
Firefox (lastest stable) with NoScript
Other Info
Just a humdrum little system.
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 Computer

Computer Manufacturer/Model Number
Dell Studio XPS 8100
OS
Windows 7 Home Premium 64-bit
CPU
Intel Core i7 Processor 870
Memory
8 gb
Graphics Card(s)
1GB NVIDIA GeForce GTX 460
Monitor(s) Displays
Dell ST2320L
Hard Drives
1TB ATA
You're welcome, Ken. I'm pleased that you've resolved your issue. :)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dwarf Dwf/11/2012 r09/2013
OS
Windows 8.1 Pro RTM x64
CPU
Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Bridge) (OC 4.4GHz)
Motherboard
ASRock Z77 Extreme4-M
Memory
4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB)
Graphics Card(s)
MSI GeForce GTX770 Gaming OC 2GB
Sound Card
Realtek High Definition on board solution (ALC 898)
Monitor(s) Displays
ViewSonic VA1912w Widescreen (VGA)
Screen Resolution
1440x900
Hard Drives
OCZ Agility 3 SSD 120GB SATA III x2 (RAID 0)
Samsung HD501LJ 500GB SATA II x2
Hitachi HDS721010CLA332 1TB SATA II
Iomega 1.5TB Ext USB 2.0
WD 2.0TB Ext USB 3.0
PSU
XFX Pro Series 850W Semi-Modular
Case
Gigabyte IF233
Cooling
1 x 120mm Front Inlet 1 x 120mm Rear Exhaust
Keyboard
Microsoft Comfort Curve Keyboard 3000 (USB)
Mouse
Microsoft Comfort Mouse 3000 for Business (USB)
Internet Speed
NetGear DG834Gv3 ADSL Modem/Router (Ethernet) ~4.0 Mb/s (O2)
Antivirus
Avast! 8.0.1497
Browser
IE 11
Other Info
Optical Drive: HL-DT-ST BD-RE BH10LS30 SATA Bluray
Lexmark S305 Printer/Scanner/Copier (USB)
WEI Score: 8.1/8.1/8.5/8.5/8.25
Asus Eee PC 1011PX Netbook (Windows 7 x86 Starter)
Back
Top