Adding a User Environment Variable in Windows

Posted by troyt on 2006-06-22 10:23
OS: Windows 2000 Pro / Server | Product: Main | tags: path windows
Question: 

How do I add a 'user' environment variable under Windows?

Answer: 
  1. Right-click 'My Computer' and select 'Properties'
  2. Click the 'Advanced' tab, then 'Environment Variables'. This opens
    the Environment Variables dialog.
  3. In the top 'User variables for ' pane, select 'PATH' and
    click 'Edit'. If there is no 'PATH' variable, click on 'New' to create
    it.
  4. Add this to the beginning of the 'Variable value' field:
  5.   C:\perl\bin;
    
  6. Click 'Ok' to close each open dialog

You may want to open a new command prompt to check if perl is now in the
path. The following command should work (and return perl's version
information) if the above steps were successful:

  C\>perl -v