home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
procomm
/
tspfon29.arc
/
PFON.BAT
< prev
next >
Wrap
DOS Batch File
|
1988-08-10
|
2KB
|
68 lines
echo off
rem PFON.BAT ver 1.3
echo .
echo ********************************************************************
echo * ProComm Plus pcplus.FON file amend batch by Timo Salmi 10-Aug-88 *
echo ********************************************************************
echo .
if not "%1"=="" goto help
if not exist pcplus.fon goto virhe1
if not exist pcpfon.exe goto virhe2
echo Your PCPLUS.FON file is about to be rewritten
echo Press break to abort, any other key to proceed
pause
copy/v pcplus.fon pcplus.bck
if exist pcplus.fon echo old PCPLUS.FON backed up as PCPLUS.BCK
if exist pcplus.tmp del pcplus.tmp
pcpfon pcplus.fon pcplus.tmp
if errorlevel 1 goto virhe4
if exist pcplus.tmp del pcplus.fon
if exist pcplus.fon goto virhe3
copy/v pcplus.tmp pcplus.fon
if exist pcplus.fon echo PCPLUS.TMP copied to PCPLUS.FON
if exist pcplus.tmp del pcplus.tmp
if not exist pcplus.tmp echo PCPLUS.TMP deleted
echo .
echo **************************************************************
echo * Your PCPLUS.FON file has been rewritten. Bye from PFON.BAT *
echo **************************************************************
goto ulos
:help
echo PFON converts pcplus.fon call logging file by
echo 1) Calculating the missing elapsed time whenever possible
echo 2) Changing the dates mm/dd/yy into a weekday format wwddmmyy
echo PFON also displays the total elapsed time and the total number of calls
echo .
echo The old pcplus.fon version is backed up as pcplus.bck
echo .
echo PFON takes no parameters. To execute it just write PFON
echo .
goto ulos
:virhe1
echo .
echo PFON.BAT aborted: PCPLUS.FON file not found
echo .
goto ulos
:virhe2
echo .
echo PFON.BAT aborted: PCPFON.EXE program not found
echo .
goto ulos
:virhe3
echo .
echo PFON.BAT aborted: Rewrite of PCPFON.FON denied by MsDos
echo .
goto ulos
:virhe4
echo .
echo PFON.BAT aborted: PCPFON.EXE error termination
echo .
goto ulos
:ulos
echo on