rem ruler.bat
@echo off
rem Requires command extension enabled on the "cmd /E:ON" command.
rem Note: Command Extensions are enabled by default.
SETLOCAL
set HERE='c:/tim/wp/01/elec576/site/ruler'
set PLCON="c:\program files\pl\bin\plcon.exe"
set PLBIN="c:\program files\pl\bin"
set LOAD=load_files([ruler],[silent(true)]),+[%2]
IF "%1"=="-runs" GOTO RUNS
IF "%1"=="-run1" GOTO RUN1
IF "%1"=="-win" GOTO WIN
GOTO HELP
:RUNS
rem command line version, with interaction
rem NOT recommended within win98 "command"
rem BUT works just fine within winnt or win2000 "cmd"
%PLCON% -g %LOAD%,welcome
GOTO END
:RUN1
rem command line version, with no interaction
rem best for execution after development
%PLCON% -g %LOAD%,go,halt
GOTO END
:WIN
rem window version, with interaction
rem best for development work
rem and if anyone knows a better way to do this- tell me!!!
start /D %PLBIN% plwin.exe -g cd(%HERE%),%LOAD%,welcome
GOTO END
:HELP
type usage.txt
:END