Jump to content
AndyS19

Starting control panel items via GUID

Recommended Posts

AndyS19

I have a script that I want to add a button that opens the "edit environment variables" popup, and I have its GUID.  From a windows shortcut, I can do it like this:

GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}

I tried to do it via RUN, but I get an error.
Here is my test code:

test()

Func test()
    Local $exe, $res, $err

    $exe = '"GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}"'

    $res = Run($exe)

    $err = @error
    ConsoleWrite("+++: $res = " & $res & ", $err = " & $err & @CRLF)

EndFunc   ;==>test

 

Edited by AndyS19

Share this post


Link to post
Share on other sites
benners

try 

run('explorer.exe shell:::{ED7BA470-8E54-465E-825C-99712043E01C}')

 

Share this post


Link to post
Share on other sites
AndyS19

Ok, thank you, that made it run without errors.  However, that hex string opened a control 'all tasks' panel GUI.  I need to find the correct hex string that opens the environmeny variable editor.  That's probably off-topic, but if anyone knows the correct hex string, please let me know.

Here are the ones that I know and that worked:

run('explorer.exe shell:::{00C6D95F-329C-409a-81D7-C46C66EA7F33}') ; default location
run('explorer.exe shell:::{0142e4d0-fb7a-11dc-ba4a-000ffe7ab428}'); Biometric Devices
run('explorer.exe shell:::{025A5937-A6BE-4686-A844-36FE4BEC8B6D}'); Power Options
run('explorer.exe shell:::{05d7b0f4-2121-4eff-bf6b-ed3f69b894d9}'); Notification Area Icons
run('explorer.exe shell:::{1206F5F1-0569-412C-8FEC-3204630DFB70}'); Credential Manager
run('explorer.exe shell:::{15eae92e-f17a-4431-9f28-805e482dafd4}'); Get Programs
run('explorer.exe shell:::{17cd9488-1228-4b2f-88ce-4298e93e0966}'); Default Programs
run('explorer.exe shell:::{1D2680C9-0E2A-469d-B787-065558BC7D43}'); Fusion cache (explorer crashes)
run('explorer.exe shell:::{1FA9085F-25A2-489B-85D4-86326EEDCD87}'); Manage Wireless Networks
run('explorer.exe shell:::{208D2C60-3AEA-1069-A2D7-08002B30309D}'); Network (WORKGROUP)
run('explorer.exe shell:::{20D04FE0-3AEA-1069-A2D8-08002B30309D}'); Computer
run('explorer.exe shell:::{2227A280-3AEA-1069-A2DE-08002B30309D}'); Printers
run('explorer.exe shell:::{241D7C96-F8BF-4F85-B01F-E2B043341A4B}'); RemoteApp and Desktop Connections
run('explorer.exe shell:::{4026492F-2F69-46B8-B9BF-5654FC07E423}'); Windows Firewall
run('explorer.exe shell:::{62D8ED13-C9D0-4CE8-A914-47DD628FB1B0}'); Region and Language
run('explorer.exe shell:::{78F3955E-3B90-4184-BD14-5397C15F1EFC}'); Performance Information and Tools

 

Share this post


Link to post
Share on other sites
1957classic

I don't know what the GUID is but this opens the Environment Variables for me.

ShellExecute('rundll32.exe', 'sysdm.cpl,EditEnvironmentVariables')

 

 

Edited by 1957classic

Share this post


Link to post
Share on other sites
AndyS19

Perfect! just what I needed.  Thank you

Share this post


Link to post
Share on other sites
1957classic

You're welcome. Glad to help.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×