Windows 7 Forums


Windows 7: VB Script Error

01 Oct 2011   #1

Windows 7
 
 
VB Script Error

HI,

I am sorry if I have posted this I the wrong place I wasn't sure where to put it,

I am trying to open and run a .vbs file but I keep getting the following error

'There is no script engine for file extension '.vbs' '

I have searched the internet and found this link

There is no script engine for file extension “.vbs” « A Place for C Sharpers/.Netters

I have done everything it says to do in CMD.exe but I cannot find the file

%windir%\inf\wsh.inf

I've looking in the C:\Windows\inf directory but the file isn't there

Anyone know how I can fix this error



Much Appreciated
My System SpecsSystem Spec

01 Oct 2011   #2

Windows 8 Pro
Standish, Lancashire, England
 
 

Try the restore file association for vbs files from this tutorial - Default File Type Associations - Restore
My System SpecsSystem Spec
01 Oct 2011   #3

Windows 7
 
 

I have managed to get it to work now, thank you, z3r010 BUT it is now bringing up a error on the .vbs file but when I ran it before there was not error, could this be related?

its pointing to line 68

objLog.WriteLine objFile.Name & " contains " & colMatches.Count & " matches. Manual adjustment required."
My System SpecsSystem Spec
.


01 Oct 2011   #4

Windows 7
 
 
script

Heres the script
Attached Files
File Type: vbs renscript.vbs (2.9 KB, 325 views)
My System SpecsSystem Spec
Reply

 VB Script Error problems?



Thread Tools



Similar help and support threads for: VB Script Error
Thread Forum
Display Player Error: Object expected, Script Error Software
Script Error Help BSOD Help and Support
Script error Software
ie8 script error Browsers & Mail
script error when running a vbs script. Network & Sharing


All times are GMT -5. The time now is 01:25 AM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

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
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32