Category : Files from Magazines
Archive   : VOL9N12.ZIP
Filename : D.BAT

 
Output of file : D.BAT contained in archive : VOL9N12.ZIP
D.BAT

@ECHO OFF
REM (remove @ in the line above
REM for DOS less than 3.3)
REM *
REM * D.BAT
REM * Dir /P with wildcards
REM *

IF [%1]==[] GOTO :Dir0

IF EXIST %1 GOTO :Dir1
IF EXIST %1.* GOTO :Dir2
IF EXIST *.%1 GOTO :Dir3
IF EXIST %1*.* GOTO :Dir4
IF EXIST *.%1* GOTO :Dir5
IF EXIST %1\*.* GOTO :Dir6

ECHO Sorry, no "%1" files found...
GOTO :End

:Dir0
Dir /P
GOTO :End

:Dir1
Dir /P %1
IF EXIST %1.* GOTO :Dir2
GOTO :End

:Dir2
Dir /P %1.*
IF EXIST *.%1 GOTO :Dir3
GOTO :End

:Dir3
Dir /P *.%1
GOTO :End

:Dir4
Dir /P %1*.*
IF EXIST *.%1* GOTO :Dir5
GOTO :End

:Dir5
Dir /P *.%1*
GOTO :End

:Dir6
Dir /P %1\*.*

:End




  3 Responses to “Category : Files from Magazines
Archive   : VOL9N12.ZIP
Filename : D.BAT

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/