+ Post New Thread
Results 1 to 2 of 2
How do you do....it? Thread, Batch file to alter the path in Technical; Hello, this is my first post so bare with me lol. What we need to do is create a simple ...
  1. #1

    Join Date
    Oct 2009
    New Kensington, Pa
    Thank Post
    Thanked 0 Times in 0 Posts
    Rep Power

    Batch file to alter the path

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

  2. #2

    Join Date
    Apr 2007
    Thank Post
    Thanked 45 Times in 39 Posts
    Rep Power
    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
    Will append the values if write permission is available to that key.
    Last edited by andy_b; 5th October 2009 at 06:57 PM.

+ Post New Thread

Similar Threads

  1. Set the AD "Home Path" with a batch file?
    By eejit in forum How do you do....it?
    Replies: 8
    Last Post: 14th September 2009, 10:09 AM
  2. batch file comman
    By jussy65 in forum Scripts
    Replies: 3
    Last Post: 13th August 2008, 07:10 AM
  3. Pass £ in batch file
    By meastaugh1 in forum Windows
    Replies: 2
    Last Post: 17th January 2008, 08:02 PM
  4. batch file help
    By beeswax in forum Scripts
    Replies: 9
    Last Post: 3rd March 2006, 07:48 PM
  5. edit file path in orca
    By russdev in forum Windows
    Replies: 1
    Last Post: 27th October 2005, 08:28 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts