Link to home
Start Free TrialLog in
Avatar of joojant200
joojant200

asked on

Setting path

Hello,

How to make registry key to permanently set path for some dos program to run from command prompt from everywhere?
Avatar of juliancrawford
juliancrawford

This is the registry key that stores the path
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment
Path=

You can also set the path using the control panel
Control Panel>System>Advanced Tab>Environment Variables>System Variables>Path>Edit

or you could place a batch file in your startup folder

set path=%path%;c:\temp
<--- this adds c:\temp to the existing path
Avatar of nader alkahtani
My computer --->Properties--->Advanced ---> environment variable --->system variable ---> path then edit
Avatar of joojant200

ASKER

---------------------------------------------
This is the registry key that stores the path
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment
Path=
----------------------------------------

How can I make reg key, to import to registry, path for example c:\epi6 ?

If I understand correctly set path is only temporarly till first restart? Then this does't do the job?
I know where to set path mannualy on my computer, but need registry key to set on other computer with one click on it.
ASKER CERTIFIED SOLUTION
Avatar of juliancrawford
juliancrawford

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
When I import maked regystry key, I lose all old thing in path, only this imported work?

Is it possible to keep old path and with importing regiristry key to add new path, at end old path?