( h& l! O, s9 y [6 h : v8 t$ G* I6 C! Q2 pQ: How do I open script files? Trying the above solution makes Windows XP throw an error?4 u/ U: U1 l# m- V
& H( V* o5 {3 k! g/ jA:This is similar to the *.js association problem. Some machines seem to,for some reason, lose their *.vbs association. It's not that the filesopen with dreamweaver or whatever -- it's that the machine just doesn'tknow how to run them. If you have a scheduled task, "Could not run"will appear in the status column. v2 V: ~ \$ f : M O/ v' K8 J% fSo, you're a smart person andread through the FAQ. You find the *.js extension problem, and you trythat fix: you run it as "wscript c:\path\to cript.vbs". But that, inturn, produces a pop-up error, this time a "Windows Scripting Host"error: "There is no script engine for file extension '.vbs'." So, forsome reason, wscript doesn't even know what to do with *.vbs files.1 E4 n( S$ {# T9 j9 | N6 W- f
. W* b; X% a1 QThe solution to this problem is to run the script as: 2 Y8 f( k5 U9 A3 `3 T * Y& E, k! _. O6 b' {wscript //e:vbscript c:\path\to cript.vbs 0 B+ Z5 Q, e# A. u- I( j3 D# l( Y9 y& J/ p% Y; q# i* f
The "//e:vbscript" tells wscript to use the vbscript engine to parse the script. It will then run correctly. ; ~2 r6 ]5 r- T5 \1 O6 V$ z u- b$ Q2 e; \, e* T3 V
A few alternative solutions, perhaps easier are: 9 J6 [9 x1 @5 g) [/ ]Renameit .vbe (VBScript Encoded Script File). Not sure if this is a bad idea,but it seemed to work for some scripts. Make a new association for VBS.Open up my computer, select Tools menu-> Folder Options, and go tothe File Types tab. There probably isn't a VBS association listed ifyou have this problem. Select New, type in VBS, and hitAdvanced>>. Then, from the pull-down menu, select "VBScriptScript File". Making this selection automatically takes care of theassociation, along with the //e:vbscript problem. This is probably the"correct" solution... ( L' t3 J. n: `: q6 J' zThis problems usually occurs only on WindowsXP machines, but the cause is not known. A Microsoft KB article on thisissue can be found here. Thanks goes to Bob_2k for writing this FAQentry.