Wednesday, January 21, 2009

How to fix the vbscript error "There is no file extension in..."

Have you ever seen this error on windows XPE-based thin clients?
The actual script path is "c:\script with spaces in the name.vbs"

Here's the fix.

copy this code and paste it into a blank text file. Save it as whatever.reg and then double click on it to enter the contents into the registry:

Windows Registry Editor Version 5.00

@="C:\\WINDOWS\\system32\\WScript.exe \"%1\""