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:
- Run Task Manager (Ctrl-Alt-Del or right click on Taskbar)
- Stop wscript.exe process if available by highlighting the process name and clicking End Process.
- Then terminate explorer.exe process.
- In Task Manager, click on File -> New Task (Run…).
- Type “cmd” (without quotes) into the Open text box and click OK.
- 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 /ac, 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.
- In Task Manager, click on File -> New Task (Run…).
- Type “regedit” (without quotes) into the Open text box and click OK.
- Navigate to the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
- 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.
Related Articles
- Host Process for Windows Services Has Stopped Working Error – Workaround Fix
- AutoPlay/AutoRun Not Working or Missing Not Open in Windows Vista
- Block Malicious Autorun Files with Autorun Eater
- Open File Location Menu Item Is Missing or Not Showing When Right Click on Shortcut in Windows Vista
- Workaround to Fix Windows 7 Unable To Create or Save New Files in the Folder Error When Unloading Box
- Cannot Display the Webpage and Host/Server Not Found or Available Error – EnablePMTUDiscovery MTU Fix
- Unable to Login to Windows Live (MSN) Messenger with 80048820 Extended 80048416 Error Code
- Microsoft Money 2007 Unable to Connect to Internet to Sign In Online in Windows Vista Error
- Unable to Install and Upgrade PPStream on PowerPlay.dll and PowerList.ocx Error
- Fix Explorer.exe Unable to Locate Component Because Browseui.dll Was Not Found Error










































January 28th, 2008 12:26
thanks a lot.
The tutorial is great.
all sub7 trojens were removed.
January 26th, 2008 13:12
I am still not able to solve my problem through this procedure.
I am still having a problem opening my hard drives.
The message which appears for D:\ drive is :
Can not find script file “D:\mma.vbs”.
and for C:\ drive is :
Can not find script file “C:\mma.vbs”.
when I right click on the drives following thing is written with the drive name in brackets
Open(Sub7@Chatx.net)
explore(Sub7@Chatx.net)
Please do help me…
January 19th, 2008 12:41
THANK YOU VERY VERY MUCH MAN U SAVED MY PC
THANK U
PLEASE SEND ME UR SITE WHICH HAS MORE TIPS AND TRICKS
THANKS ONCE AGAIN
January 17th, 2008 02:52
10x Bro u r just great
January 16th, 2008 14:54
thnx.. nice one… hehehe
January 10th, 2008 00:52
i opened my flash disk by double clicking it on my computer i saw a file called Sex City.jpg.wsf i then deleted it after trying to open it in vain.Now i cant open the disk at all by the same method.when i double click it on my computer, it brings a pop up “cant find script file \Sex City.jpg.wsf” when i try to open the files thro the explorer they either wont open or all appear corrupted.what can i do somebody please help me.this flash is also my mp3 player.the sngs are corrupted too.
December 18th, 2007 20:30
but what will be the contain in autorun.vbs, if we delete it, it will not effect my system.
thank you
prijesh
http://www.pentaitservices.com
December 15th, 2007 10:02
hi im vince…what are other ways to heal maskrider virus? i tried to heal it but its says that access to that virus is denied. pls help. thnks so much.
December 14th, 2007 07:15
tenho vista home premium e nao consigo por a detectar uma porcaria de pen disk my flash pd9 da adata instalada no pc. porque?
December 9th, 2007 16:56
my hard disk not to open apear message access is denied
December 8th, 2007 02:24
thanks it worked very well,
but after i restart my computer, it starts all over again, so i have to do everythin over again,. is it normal?
December 8th, 2007 01:37
You’re the best!!!! It worked so quick, i had tried so many things including typing “regsvr32 /i shell32.dll” in the run but it ll didnt work. thanks.
it even solved the problem of me not being able to see my removable disk. God bless you!!!
December 6th, 2007 22:39
when i did above things in mycomputer.
Iam able to open only C drive.
when iam trying to open d,e drivers it goes again to mydocuments.
can you pls suggest me.
Problem: when i click any d,e drives it takes me directly to mydocuments folder.
thanks
kishroe
November 28th, 2007 05:57
thaxs a million tons
November 27th, 2007 07:21
My flash drive started working fine, but then after couple of days it got messed up again. So now I use the folder tree to get to my flash drive. Can somebody give me a permanent solution.
Thanks
November 24th, 2007 04:13
at first thanks alot friend, but it solved half of the problem, the other half is yahoo messenger still don’t work, do you have any idea for that, thanks in advance.
Abdullatif
November 18th, 2007 16:14
hi my name is jabir. I am working with an ISP as broadband Network Engineer. I was facing this problem from a long time. I follow the above easy steps and i got rid of this stupid drive virus.
thanks alot…………..
November 16th, 2007 14:15
…..thanks it works.. my pc now is good as it gets..thanks man!!!!
October 17th, 2007 12:59
Thanks a lot .. It helped me fix my external harddisk
October 14th, 2007 19:12
Gud day…
I’ve tried ur step-by-step solution, but it did not work for me…
Maybe it’s because my problem is about “mma.vbs”, and not “autorun.vbs”… Could you suggest some ways in which I could solve this problem?
Thanks a lot in advance… I wish you could help me with this problem…
September 18th, 2007 23:10
Hey man i tried that solution, and my value for Userinit was not different from what you wrote. It solved my previous problem, in which it opened the OPEN WITH dialog box. But now when I click on the drive it opens a new search window. It doesn’t go into the drive
September 12th, 2007 22:51
I tried your solution with all drives but except C:\ Drive all other Drives are working fine….
Would you please suggest some solution for C:\ Drive….
Thanks in advance….
September 9th, 2007 14:46
thank you very much for the explanation and very well written steps.
…it solved the problem
September 8th, 2007 08:26
This worked for my hard drives but my computer wouldn’t delete the flashdrive autorun because it doesn’t read it. What can I do to fix this?
September 5th, 2007 20:38
thanks a lot. u r simply great! may god loves u and your family =)