RosettaCodeData/Task/Check-that-file-exists/Batch-File/check-that-file-exists.bat

5 lines
268 B
Batchfile
Raw Permalink Normal View History

2013-04-10 16:19:29 -07:00
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.