Spath.bat

The safest method is to go into dos / command-prompt.  Then execute the command

/watfor/spath.bat

This file is c:\watfor\spath.bat  Not a link -

set path=c:\watfor;%path%

            This will set the path so that watfor will work. 

Another very useful command is

DOSKEY

This causes the computer to keep all commands.  They can then be retrieved with an up arrow.

For the truly cautious users

            It is possible to use Watcom without changing the system’s environment.

C:\watcom\setvars.bat

@echo off

SET PATH=C:\watcom\BINNT;C:\watcom\BINW;%PATH%

SET WATCOM=C:\watcom

SET EDPATH=C:\watcom\EDDAT

SET INCLUDE=C:\watcom\H;C:\watcom\H\NT

SET FINCLUDE=C:\watcom\SRC\FORTRAN

            This sets the paths for using wfl386 to compile and link fortran code for character-mode executables.   Those that we use.

C:\watcom\SETDOS.BAT

@ECHO OFF

SET WATCOM=d:\watcom

SET PATH=D:\WATCOM\BINW;%PATH%

SET INCLUDE=D:\WATCOM\H

SET FINCLUDE=D:\WATCOM\SRC\FORTRAN;D:\WATCOM\SRC\FORTRAN\DOS

            This sets the file to dos-16 excutables for which there is graphics.  See ..\gplot\WELCOME.mht

Bob’s Autoexec.bat

@ECHO OFF

C:\IBMTOOLS\RESUME.EXE

REM - Following LOCK command added by Windows Setup

ECHO y | LOCK > NUL

C:\IBMTOOLS\IBMPFILE.EXE

UNLOCK

C:\IBMAV95\IBMAVSH /F00

PATH C:\WINDOWS.000;C:\WINDOWS.000\COMMAND;C:\IBMTOOLS

set PATH=D:\WATFOR;D:\PKWARE;D:\SROBFIT\RUNABLE;"%PATH%"

LH C:\WINDOWS.000\COMMAND\DOSKEY

 

REM

REM

REM

 

 

 

C:\PROGRA~1\COMMON~1\NETWOR~1\VIRUSS~1\40~1.XX\scan.exe C:\

@IF ERRORLEVEL 1 PAUSE

Windows 2000 pro / Windows XP

            The newest versions of windows do not use autoexec.bat.  They claim to use autoexec.nt and config.nt.  The path cannot be increased using these.  Go to the control panel.  Select system, then advanced, then environment variables.  Under this you will find that you can select path, and edit same.  Add c:\watfor; in a convenient location.  This worked for me on the 2000 pro. 

Windows Xp for home has a user path and a system path.  The system path needs to be changed in order to get c:\watfor; first.  For details see  WindowsXP_home_path.mht.  The bat file spath.bat included in c:\watfor will also change the path to make this c:\watfor; first, but it must be invoked after entering dos which is a bit of a nuisance.

The normal command prompt has

%HOMEDRIVE%%HOMEPATH%

as the location to begin in.  I find that making copies of command prompt in the desired directory with this removed causes the dos to open in the current directory.  This is valuable for using gplot to look at files that have just been produced.

Initms.bat

ECHO ON

set PATH=D:\MSDEV\BIN;"%PATH%"

set INCLUDE=D:\MSDEV\INCLUDE;"%INCLUDE%"

set LIB=D:\MSDEV\LIB;"%LIB%"

cmtplw98.bat

ECHO IN FOR

FL32 /MWs TPLOT.FOR MSDPLOTS.FOR

COPY TPLOT.EXE W98\TPLOT.EXE