how do I run the window start..ctrl panel..system..advanced..environment variables?

open the environment variable editing window?
Started by
betvo
, Jun 16 2011 04:17 PM
9 replies to this topic
#1
-
Posted 16 June 2011 - 04:17 PM

Using ProcessExplorer you can get the full command line parameters for any open window.
Click the target button, point it to the environment variables window, right click on the process it indicates and then properties.
From this, you can use the run command.
This works for me. (Bound to the Windows + i hotkey)
Also: <!-- m -->http://www.autohotke...ommands/Run.htm<!-- m -->
Click the target button, point it to the environment variables window, right click on the process it indicates and then properties.
From this, you can use the run command.
This works for me. (Bound to the Windows + i hotkey)
#i::Run, "C:\Windows\system32\rundll32.exe" sysdm.cpl`,EditEnvironmentVariables
Also: <!-- m -->http://www.autohotke...ommands/Run.htm<!-- m -->
#2
-
Posted 16 June 2011 - 04:38 PM

“There is a computer disease that anybody who works with computers knows about. It's a very serious disease and it interferes completely with the work. The trouble with computers is that you 'play' with them!” Richard Feynman
that rundll32.exe and process explorer method is pretty good but doesn't get further than the advanced tab. It doesn't open EditEnvironmentVariables.. Even when I point it to that window.
rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,3
When I remove the backquotes from your example to make it work in start..run
start..run..rundll32 sysdm.cpl,EditEnvironmentVariables
it doesn't work
rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,3
When I remove the backquotes from your example to make it work in start..run
start..run..rundll32 sysdm.cpl,EditEnvironmentVariables
it doesn't work
#3
-
Posted 16 June 2011 - 07:18 PM

The backquotes are needed, otherwise they are interpreted differently.
I see this when running the code I posted:
<!-- m -->http://dl.dropbox.co...ics/Env-var.png<!-- m -->
If Target contains any commas, they must be escaped as shown three times in the following example:
Run rundll32.exe shell32.dll`,Control_RunDLL desk.cpl[color=#FF0000]`,`,[/color] 3 ; Opens Control Panel > Display Properties > Settings
I see this when running the code I posted:
<!-- m -->http://dl.dropbox.co...ics/Env-var.png<!-- m -->
#4
-
Posted 16 June 2011 - 07:35 PM

“There is a computer disease that anybody who works with computers knows about. It's a very serious disease and it interferes completely with the work. The trouble with computers is that you 'play' with them!” Richard Feynman
I don't I see what the comment says (display..settings)..
added-
I see you mean just in that example.. I am removing the backquotes so it works in start..run
if I click start then run then
"C:\Windows\system32\rundll32.exe" sysdm.cpl,EditEnvironmentVariables
it doesn't work
added-
I see you mean just in that example.. I am removing the backquotes so it works in start..run
if I click start then run then
"C:\Windows\system32\rundll32.exe" sysdm.cpl,EditEnvironmentVariables
it doesn't work
#5
-
Posted 16 June 2011 - 07:43 PM

I'm confused, the script I posted will invoke the environment variables window when you press Windows button + i
The example script from the help file, shows the display properties, when run. (i.e. if you assign it a hotkey and then press said hotkey)
Maybe would help if you post your code.
The example script from the help file, shows the display properties, when run. (i.e. if you assign it a hotkey and then press said hotkey)
Maybe would help if you post your code.
#6
-
Posted 16 June 2011 - 07:48 PM

“There is a computer disease that anybody who works with computers knows about. It's a very serious disease and it interferes completely with the work. The trouble with computers is that you 'play' with them!” Richard Feynman
...
I see you mean just in that example.. I am removing the backquotes so it works in start..run
if I click start then run then
"C:\Windows\system32\rundll32.exe" sysdm.cpl,EditEnvironmentVariables
it doesn't work
Hmmm...does here...
#7
-
Posted 16 June 2011 - 07:50 PM

“There is a computer disease that anybody who works with computers knows about. It's a very serious disease and it interferes completely with the work. The trouble with computers is that you 'play' with them!” Richard Feynman
...
I see you mean just in that example.. I am removing the backquotes so it works in start..run
if I click start then run then
"C:\Windows\system32\rundll32.exe" sysdm.cpl,EditEnvironmentVariables
it doesn't work
Hmmm...does here...
Does Process Explorer give you that?
Process Explorer gives me all this before sysdm.cpl and ,,3 after it
rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,3
this comp is XP SP2, what's yours?
#8
-
Posted 16 June 2011 - 08:07 PM

Yes, that is what I get out of process explorer.
The one you posted, opens the window before environment variables.
(advanced tab)
Mine is win 7
The one you posted, opens the window before environment variables.
(advanced tab)
Mine is win 7
#9
-
Posted 18 June 2011 - 10:33 AM

“There is a computer disease that anybody who works with computers knows about. It's a very serious disease and it interferes completely with the work. The trouble with computers is that you 'play' with them!” Richard Feynman
This works for me.
#i::Run, "C:\Windows\system32\rundll32.exe" sysdm.cpl`,EditEnvironmentVariables...with XP SP1 results in...
--------------------------- RUNDLL --------------------------- Error in sysdm.cpl Missing entry:EditEnvironmentVariables --------------------------- OK ---------------------------
#10
-
Posted 19 June 2011 - 09:28 PM
