Unable to Open Hard or USB Flash Drive with Windows Script Host Cannot Find Script File autorun.vbs Error

In some situation especially when anti-virus program has cleaned, healed, disinfected or removed a worm, trojan horse or virus from computer, there may be error happening whenever users try to open or access the drive by double clicking on the disk drive icon in Explorer or My Computer window to try to enter the drive’s folder. The problem or symptom happens in hard disk drive, portable hard disk drive or USB flash drive, and Windows will prompt a dialog box with the following message:

Windows Script Host

Can not find script file autorun.vbs.

Sometimes you will be asked to debug the VBScript with error code of 800A041F – Unexpected ‘Next’.

or

Choose the program you want to use to open this file with:

In this case, the “Always use the selected program to open this kind of file” option is grayed out.

The symptom occurs because when autorun.vbs is created by trojan horse or virus. The virus normally loads autorun.inf file to root folder of all hard drive or USB drive, and then execute autorun.bat file which contains script to apply and merge autorun.reg into the registry, with possible change to the following registry key to ensure that virus is loaded when system starts:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
Userinit=userinit.exe,autorun.exe

Finally, autorun.bat will call wscript.exe to run autorun.vbs.

When antivirus or security software detected the autorun.vbs file as infected, the file will be deleted or removed or quarantined. However, other files (autorun.*) and registry value still referring to autorun.vbs, and this document no longer exists, hence the error when users double click to open a drive folder.

To correct and solve this error, follow this steps:

  1. Run Task Manager (Ctrl-Alt-Del or right click on Taskbar)
  2. Stop wscript.exe process if available by highlighting the process name and clicking End Process.
  3. Then terminate explorer.exe process.
  4. In Task Manager, click on File -> New Task (Run…).
  5. Type “cmd” (without quotes) into the Open text box and click OK.
  6. Type the following command one by one followed by hitting Enter key:

    del c:\autorun.* /f /s /q /a
    del d:\autorun.* /f /s /q /a
    del e:\autorun.* /f /s /q /a

    c, d, e each represents drive letters on Windows system. If there are more drives or partitions available, continue to command by altering to other drive letter. Note that you must also clean the autorun files from USB flash drive or portable hard disk as the external drive may also be infected.

  7. In Task Manager, click on File -> New Task (Run…).
  8. Type “regedit” (without quotes) into the Open text box and click OK.
  9. Navigate to the following registry key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

  10. Check if the value name and value data for the key is correct (the value data of userint.exe include the path which may be different than C drive, which is also valid, note also the comma which is also needed):

    “Userinit”=”C:\WINDOWS\system32\userinit.exe,”

    If the value is incorrent, modify it to the valid value data.

127 Responses to “Unable to Open Hard or USB Flash Drive with Windows Script Host Cannot Find Script File autorun.vbs Error”

Pages: 1 ... 4 5 6

  1. rai
    January 28th, 2010 16:41
    127

    hello

    every time when i start my lap top window xp. the “can not find script file “c:\windows\jargon.vbs …pops up on my screen. could u please help!

    many many thanks!

  2. dreev
    January 19th, 2010 23:32
    126

    hello i have same problem but it is like this.

    can not find script file “C:\WINDOWS\jargon.vbs”.

    how can i fix it?

    thanks..

Pages: 1 ... 4 5 6

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to My Digital Life Comments RSS feed to receive notification of latest comments posted.

New Articles

Incoming Search Terms for the Article

usb.wsf - cannot find script file - gova.vbs - unable to open hard disk - usb.wsf virus - mma.vbs - cannot find script file gova.vbs - choose the program you want to use to open this file - can not find script file - jargon.vbs - usb anti autorun usb.wsf - gova virus - autorun.vbs - cannot open usb drive - open with error drive - unable to open hard drives - _sws.vbs - gova.vbs remover - cannot find script file usb.wsf - choose the program you want to use to open this file c - how to remove gova virus - cannot find script file .vbs - cannot find script file vbs - unable to open usb - how to remove gova.vbs - CANNOT FIND script file info.vbs - can not find script file usb.wsf - can not find script file autorun.vbs - can not find script file jargon.vbs - how to open drive infected with gova.vbs - cannot find gova.vbs - usb unable to open - unable to open external hard drive - gova.vbs removal - maskrider virus - cannot find script file jargon.vbs - antivirus.vbs file deleted from pen drive - unable to open c drive - cannot open c drive - cannot open usb flash disk - script file gova.vbs - remove gova.vbs - C:\Program files\usb anti autorun\usb.wsf - unable to open flash drive - USB choose the program you want to use to open this file - cannot find usb.wsf - vbs.autorun removal - usb anti autorun/usb.wsf - Can not find script file "C:\WINDOWS\jargon.vbs" - jargon.vbs remover - USB fix script - how to remove gova - vbs autorun removal - usb anti autorun\usb.wsf - can not find script file gova.vbs - unable open usb - how to fix gova.vbs - cannot find script file - cannot find autorun.vbs - choose program to open usb - post free ads gova - unable to find usb drive - external hard drive cannot open - unable to open script file - cannot open usb - cannot find script file "C:\autorun.vbs". - usb cannot open - how to remove jargon.vbs virus - shell\explore=×ÊÔ´¹ÜÀíÆ÷(&X) - how to remove jargon.vbs - Can not find script file C:\Program Files\usb anti autorun\usb.wsf - gova.vbs virus - cannot find script file E:\usb.wsf - what is gova.vbs - autorun vbs -