Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue