Data update

This commit is contained in:
Ingy döt Net 2026-02-01 16:33:20 -08:00
parent 5150844a7d
commit 4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions

View file

@ -1,4 +1,19 @@
if exist input.txt echo The following file called input.txt exists.
if exist \input.txt echo The following file called \input.txt exists.
if exist docs echo The following directory called docs exists.
if exist \docs\ echo The following directory called \docs\ exists.
@echo off
call :fileexist input.txt
call :fileexist \input.txt
call :direxist docs
call :direxist \docs
goto :eof
:fileexist
if exist %1\ call :printexist File %1 0&goto:eof
if exist %1 call :printexist File %1 1&goto:eof
call :printexist File %1 0&goto:eof
:direxist
if exist %1\ call :printexist Directory %1 1&goto:eof
call :printexist Directory %1 0&goto:eof
:printexist
if %3 equ 0 (echo %1 %2 does not exist.) else (echo %1 %2 exists.)
goto:eof