Windows 11 Script Host error 80070002


New Member

I recently installed Windows 11.

I want to change the shortcut winKEY + E to another folder.

I used the below code and it worked on another laptop, but now I got the error from title.


Windows Registry Editor Version 5.00



@="wscript.exe \"C:\\Users\\flori\\Documents\\launch.vbs\""


WScript.CreateObject("Wscript.Shell").Run "C:\Users\flori\Downloads"

I am using Bitdefender with the attached settings.

What can I do?

Thank you!


  • 2023-06-15 15_31_19-Bitdefender Security Center.png
    2023-06-15 15_31_19-Bitdefender Security Center.png
    73.2 KB · Views: 31

The error you are seeing, "Windows Script Host error 80070002," typically occurs when the system cannot find the specified file. In your case, it is possible that the system cannot find the "launch.vbs" script you specified in your registry file.

To resolve this issue, you can try the following steps:

1. Double-check the file path specified in your registry file and ensure that the script exists in the specified location.

2. If the file exists, try running the script manually to ensure that it works as expected.

3. If the script runs successfully, try editing the registry file to use the full file path instead of a relative path, such as "C:\Users\flori\Documents\launch.vbs" instead of "\Documents\launch.vbs".

4. You can also try disabling Bitdefender temporarily while testing the script to ensure that it is not interfering with the execution of the script.

I hope this helps you resolve the issue with the Windows Script Host error 80070002 when trying to change the shortcut winKEY + E in Windows 11. Please feel free to ask any follow-up questions you may have and I will do my best to assist you further.

I attached the errors. The path is correct.

How can I fix this? I tried to add to except the launch.vbs, but it is useless.


//EDIT: I fixed. The path in launch.vbs file was not correct. Thank you all!


  • 2023-06-15 20_17_14-Windows Script Host.png
    2023-06-15 20_17_14-Windows Script Host.png
    29.3 KB · Views: 69
  • 2023-06-15 20_17_26-Bitdefender Security Center.png
    2023-06-15 20_17_26-Bitdefender Security Center.png
    58.2 KB · Views: 62
Last edited: