On Sat, 27 Jan 2001 15:40:56 -0500, Clarence Verge wrote:
> Samuel W. Heywood wrote:
>> In my AUTOEXEC.BAT I have the following two lines included:
>> SET TEMP=C:\ARACHNE\TEMP\ARACHNE.TMP
>> IF NOT DIREXIST %TEMP% MD %TEMP%
> In what version of DOS did "DIREXIST" become a valid testable condition ?
> - Clarence Verge
> --
> - Help stamp out FATWARE. As a start visit: http://home.arachne.cz/
> --
@echo off
REM Program Name: ISITHERE.BAT
echo.
echo This program works with Caldera DRDOS, version 7.02
echo and perhaps with some other DOS versions.
echo.
if "%1" == "" goto NOPARM
if "%1" == "/?" goto HELP
if "%1" == "?" goto HELP
if "%1" == "/H" goto HELP
if "%1" == "/h" goto HELP
IF DIREXIST %1 echo The directory %1 exists.
IF NOT DIREXIST %1 echo The directory %1 does not exist.
goto END
:NOPARM
echo You failed to use any parameters!
echo.
:HELP
echo Syntax example: ISITHERE C:\DRDOS
echo.
echo This program checks for the existence of any specified directory.
echo.
goto END
:END
Contributed by Sam Heywood
-- This mail was written by user of The Arachne Browser - http://arachne.cz/