Command to change the path using environment variable from Command prompt

Discussion in 'Windows 7 Help and Support' started by Swathi, Jun 9, 2012.

  1. Swathi

    Swathi New Member

    Joined:
    Jun 9, 2012
    Messages:
    2
    Likes Received:
    0
    Hi all,

    In UNIX, for changing the directory path, there is "cd" command. .This works fine in windows 7 too.. But the problem comes when we are trying to change the path using environment variables. .

    In UNIX, cd $JAVA_HOME changes the path to the value set for JAVA_HOME,

    Similarly is there any command in Windows which does the trick from command prompt for changing path using Environment variables. .

    Please let us know if further info is needed. .

    many thanks
    Swathi
     
  2. Veegertx

    Veegertx Honorable Member

    Joined:
    Nov 19, 2009
    Messages:
    444
    Likes Received:
    19
    it's the same
    type set in a command prompt it show's all environment variables
    Code:
    C:\Users\MyUser>cd %ProgramFiles(x86)%
    C:\Program Files (x86)>
     

Share This Page

Loading...