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

[HKEY_CLASSES_ROOT\VBSFile\Shell\Open\Command]
@="C:\\WINDOWS\\system32\\WScript.exe \"%1\""

1 comment:

PREM SONI said...

Thanks! Worked for me on thin client on Windows XP Pro.