AndyS19

Starting control panel items via GUID

2 posts in this topic

#1 ·  Posted (edited)

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



try 

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

 

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