A few words of thanks would be greatly appreciated.

Cannot find script file "c:/windows/system32/semiantivirus

Users of Windows XP may face an error which says that Windows is unable to find script file for semiantivirus.vbs under Windows system files. This error could occur because of a hidden regedit.sys file, which means the script file for semiantivirus.vbs cannot be found. To get around this problem, the user may need to run custom commands in command prompt to delete regedit.sys file. One can also generate debugger registry keys for troubleshooting using custom commands as well, and use these keys to delete any entries that are flagged with debugger keys.


I am having a problem, every time I start my laptop a message displays on my screen:
Cannot find script file "c:/windows/system32 /semiantivirus.vbs"
Please help me


I encountered a similar problem with one of my computers. regedit.sys was present in the c:windowssystem32 directory but hidden.

I ran the following commands on command prompt to delete it:

attrib -a -h -s -r c:windowssystem32regedit.sys   
del c:windowssystem32regedit.sys 

It creates a shell extension for executable, and it is deleted by following command:
  • reg delete
    "HKLMSOFTWAREClassesexefileshellScan for virus,s" 

It also creates debugger registry keys for most of the troubleshooting and antivirus programs. To enable the regedit, use this command:
  • reg delete
    "HKLMSOFTWAREMicrosoftWindows NTCurrentVersionImage File Execution Optionsregedit.exe" 

Then run regedit, and navigate to:
HKLMSOFTWAREMicrosoftWindows NTCurrentVersionImage File Execution
and delete all entries in which you see Debugger key.


Thanks to Imran for this tip on the forum.

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jean-François Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.
This document, titled « Cannot find script file "c:/windows/system32/semiantivirus », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).

Subscribe To Our Newsletter!

The Best of CCM in Your Inbox

Subscribe To Our Newsletter!