Name the document setup_ampl.bat. If queried about changing the extension, click Yes.
Open Notepad. Go to the start menu, select Programs, then Accessories and finally Notepad.
Open setup_ampl.bat in Notepad.
Changed:
< <
Add the following lines to setup_ampl.bat:
path %path%;\ampcml start cmd.exe
> >
Add the following lines to setup_ampl.bat:
path %path%;<AMPL root>\ampcml start cmd.exe
Save setup_ampl.bat and then double click on setup_ampl.bat in your Desktop. You will get a command line window (also known as a DOS prompt) pop up and your path will be set to find AMPL.
You can now run AMPL from anywhere on your computer.