Extracted from http://www.cs.usask.ca/~wew036/latex/env.html
This page explains how to set environment variables in Windows 95/98/Me/NT/2000/XP.
- In Windows 95/98/ME, append these lines to the end of your c:\autoexec.bat using notepad, and then reboot your computer:
set HOME=d:\home set DISPLAY=localhost:0 set PATH=.;d:\cygwin\bin;d:\cygwin\usr\bin;d:\cygwin\usr\local\bin;D:\cygwin\usr\X11R6\bin;d:\gs\gs8.00\bin;d:\gs\gs8.00\lib;%PATH%
- In Windows NT/2000/XP, follow the following steps:
- Open Control Panel
- Click the System icon and the window pops up (screenshot)
- Go to the Advanced pane (screenshot)
- Click the Environment Variables button (screenshot)
- There are two seperated windows showing two sets of environment variables. Select the "new" button for the upper window to create a new environment variable (screenshot). Select the "Edit" button for the upper window to edit an existing environment variable. Probably you need to create the "HOME" and "DISPLAY" variable, and edit the "PATH" variable.
- The value of "DISPLAY" should be localhost:0
- The value of "HOME" should be the directory name where you want to put your .profile file. For example: d:\home.
- You should add these values to the beginning of your "PATH" variable: