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

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


@ECHO OFF
IF '%2'=='' GOTO syntax
FOR %%v IN (1 2 3 4 5 6 7 8) DO IF %2==%%v GOTO OK
GOTO syntax
:OK
SET temp=%1*.*
rem If name has 8 letters, we're done
IF %2==8 GOTO doit
SET temp=%temp% ?%1*.*
IF %2==7 GOTO doit
SET temp=%temp% ??%1*.*
IF %2==6 GOTO doit
SET temp=%temp% ???%1*.*
IF %2==5 GOTO doit
SET temp=%temp% ????%1*.*
IF %2==4 GOTO doit
SET temp=%temp% ?????%1*.* *.%1*
IF %2==3 GOTO doit
SET temp=%temp% ??????%1*.* *.?%1*
IF %2==2 GOTO doit
SET temp=%temp% ???????%1.* *.??%1
:doit
FOR %%f IN (%temp%) DO ECHO %%f
SET temp=
GOTO end
:syntax
ECHO DIRANY lists files whose names contain a certain string.
ECHO Syntax: "DIRANY string n"
ECHO where "string" is a string of 1 to 8 characters
ECHO (no wildcards) and "n" is the length of that string.
:end




  3 Responses to “Category : Files from Magazines
Archive   : VOL9N12.ZIP
Filename : DIRANY.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/