helpfulstuff.org Logo




Home arrow LAMP, WAMP, MAMP, & XAMPP arrow How To Add a Directory to the PATH on Windows Make Text BiggerMake Text SmallerReset Text Size
How To Add a Directory to the PATH on Windows PDF Print E-mail
Written by Trevor Gontz   
Wednesday, 19 March 2008

On Windows NT, 2000, XP and 2003:

  • Go to Control Panel and open the System icon (Start -> Settings -> Control Panel -> System, or just Start -> Control Panel -> System for Windows XP/2003) OR right-click on My Computer and then choose Properties.
  • Go to the Advanced tab
  • Click on the 'Environment Variables' button
  • Look into the 'System Variables' pane
  • Find the Path entry (you may need to scroll to find it)
  • Double click on the Path entry
  • Go to the end of the current entries
  • Enter the path to your directory at the end (*Note; Be sure to add a ; (semicolon) at the end of the previous entry to separate it from what you are typing.
For example, to add MySQL 5 to the PATH you would go to the end of the current entries, add a ; and the type:
C:\Program Files\MySQL Server 5.0\bin

(For MySQL 5 the bin folder is where the mysql.exe resides.)

  • Press OK and restart your computer

On Windows 98/Me

On Windows 98/Me you need to edit the autoexec.bat file:

  • Open the Notepad (Start -> Run and enter notepad)
  • Open the C:\autoexec.bat file
  • Locate the line with PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;..... and add: ;C:\php to the end of the line
  • Save the file and restart your computer

Note: Be sure to reboot after following the steps above to ensure that the PATH changes are applied.

Last Updated ( Wednesday, 19 March 2008 )
 
< Prev   Next >
Open Source