Hello, this is my first post so bare with me lol. What we need to do is create a simple batch file that will change the path on our nurse's laptops. We recently updated their java to jre6 but for whatever reason it isnt sticking in the path on several of them. So we just need to add ;C:\Program Files\Java\jre6\bin;C:\Program Files\Java\jre6\bin\cLient to the end of the current path.
This is what i have right now and when viewed on the dos prompt it changes the path but it doesnt take affect when you look at it in environmental variables....
set PATH=%PATH%;C:\Program Files\Java\jre6\bin;C:\Program Files\Java\jre6\bin\cLient
Any help will be greatly appreciated!!
Will append the values if write permission is available to that key.Code:set NEWPATH=%PATH%;C:\Program Files\Java\jre6\bin;C:\Program Files\Java\jre6\bin\Client reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v Path /t REG_SZ /d "%NEWPATH%" /f
Last edited by andy_b; 5th October 2009 at 06:57 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)