Jump to content

delbert

Member
  • Posts

    2
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Ireland

About delbert

delbert's Achievements

0

Reputation

  1. Hi, I have installed with Microsoft CmdHere Powertoy, which in Explorer allows me to right click on a folder and open a Cmd shell in that folder. However there is an issue. If i Change an environment variable using Control Panel - System - Advanced - Environment Variables and then open a shell using CmdHere and then run the set command, i do NOT see the environment variable. (if i re-boot PC it will work!) However, if i open a cmd shell using Start - Run - cmd, and then run the set command i DO see the environment variable. Any reason why and any way to fix this. Thanks Delbert
  2. Hi, I am trying to come up with a simple way that i can change environment variables and then open a cmd shell in an folder and see the changed variables without re-booting the machine. I run Cmd shell in 2 different ways 1. START-Run-cmd This always opens in some Windows directory. 2. In explorer, i can right click on a folder and open a Cmd shell in that directory. Microsoft have a support tool to do this, but you can do the same with the following registry entries. [HKEY_LOCAL_MACHINE\Software\Classes\Folder\Shell] [HKEY_LOCAL_MACHINE\Software\Classes\Folder\Shell\AcraFlow: Open Cmd Shell] [HKEY_LOCAL_MACHINE\Software\Classes\Folder\Shell\AcraFlow: Open Cmd Shell\command] @="cmd.exe /k pushd %L" I have found 2 useful utilites for setting environment variables, setx.exe and setenv.exe. What i have done so far is 1. created a .bat file to set the environment variable to what i want. I double click on the file to set the variable. setenv -u MYVARIABLE myvalue 2. If i open a command shell as follows, and run the set command, i see the variable MYVARIABLE START-Run-cmd 3. However, if i open a command shell using a right click on a folder in Explorer, and run the set command, i dont see the variable. Why is this? Its very frustrating. Any help would be really appreciated. Thanks Delbert.
×
×
  • Create New...