How to inherit the global path in a new command prompt
Posted: 27 Jan 2015 23:48
Hi,
Could you please help me with the below query.
I have started a command prompt and the PATH (global path) set in it is as below:
Path=C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\
;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;;C:\ACTIVE~1\BIN;C:\Program Files\TortoiseSVN\bin
In this command prompt I reset the PATH to
Path=C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;
Then If I start a new command prompt using "cmd.exe /c start" then in the new command prompt it shows the PATH which I re-setted above. Where as I am interested in seeing the global path(which is available before starting the new cmd prompt)
in the new spawned cmd prompt.
Could you please let me know what is the proper way to start a new command prompt to achieve this.
Thanks
Siva
Could you please help me with the below query.
I have started a command prompt and the PATH (global path) set in it is as below:
Path=C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\
;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;;C:\ACTIVE~1\BIN;C:\Program Files\TortoiseSVN\bin
In this command prompt I reset the PATH to
Path=C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;
Then If I start a new command prompt using "cmd.exe /c start" then in the new command prompt it shows the PATH which I re-setted above. Where as I am interested in seeing the global path(which is available before starting the new cmd prompt)
in the new spawned cmd prompt.
Could you please let me know what is the proper way to start a new command prompt to achieve this.
Thanks
Siva