Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

open the environment variable editing window?


  • Please log in to reply
9 replies to this topic
betvo
  • Members
  • 35 posts
  • Last active: Jan 27 2014 07:06 AM
  • Joined: 21 Feb 2011
how do I run the window start..ctrl panel..system..advanced..environment variables?

spg SCOTT
  • Members
  • 115 posts
  • Last active: Apr 20 2012 04:41 PM
  • Joined: 10 Jun 2011
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)
#i::Run, "C:\Windows\system32\rundll32.exe" sysdm.cpl`,EditEnvironmentVariables 

Also: <!-- m -->http://www.autohotke...ommands/Run.htm<!-- m -->
“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

betvo
  • Members
  • 35 posts
  • Last active: Jan 27 2014 07:06 AM
  • Joined: 21 Feb 2011
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

spg SCOTT
  • Members
  • 115 posts
  • Last active: Apr 20 2012 04:41 PM
  • Joined: 10 Jun 2011
The backquotes are needed, otherwise they are interpreted differently.

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 -->
“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

betvo
  • Members
  • 35 posts
  • Last active: Jan 27 2014 07:06 AM
  • Joined: 21 Feb 2011
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

spg SCOTT
  • Members
  • 115 posts
  • Last active: Apr 20 2012 04:41 PM
  • Joined: 10 Jun 2011
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.
“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

spg SCOTT
  • Members
  • 115 posts
  • Last active: Apr 20 2012 04:41 PM
  • Joined: 10 Jun 2011

...
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...
“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

betvo
  • Members
  • 35 posts
  • Last active: Jan 27 2014 07:06 AM
  • Joined: 21 Feb 2011

...
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?

spg SCOTT
  • Members
  • 115 posts
  • Last active: Apr 20 2012 04:41 PM
  • Joined: 10 Jun 2011
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
“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

  • Guests
  • Last active:
  • Joined: --

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   
---------------------------