Windows 11 Script Host error 80070002

zerosama

New Member
Joined
Jun 15, 2023
Hello!

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.

Code:
 REG FILE:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{52205fd8-5dfb-447d-801a-d0b52f2e83e1}\Shell\opennewwindow\command]

"DelegateExecute"=""

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

// VBA FILE:

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

I am using Bitdefender with the attached settings.

What can I do?

Thank you!
 

Attachments

  • 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
Hello!

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.
 
Hello!

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.

Thanks.

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

Attachments

  • 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:
Back
Top Bottom