Enhanced DIR that only lists executables

1 January 2000 by Snakefoot | Comment » | Trackback Off
When having several DOS programs/games installed, then it is not always easy to remember the executable file needed to start a certain program/game. To help in this situation, one can create a batch file that list the available executable files in the current directory (Ex. BAT, COM, EXE).

Make a batch file called DEX.BAT containing the following lines:

@ECHO OFF
REM *** %1 makes it possible to specify the /S option (With sub-directories) ***
IF EXIST *.BAT DIR *.BAT /B %1
IF EXIST *.COM DIR *.COM /B %1
IF EXIST *.EXE DIR *.EXE /B %1

Tags:
Category:

Updated: 23 September 2007

Comments:

Comment by MrShadow - 20 November 2002 @ 1:26 Reply

How can someone check if there is a floppy in the floppy drive or not and if not echo a personal message instead of the default abort/retry message? Can it be done with the exist option/check?

Comment by snakefoot - 21 November 2002 @ 1:26 Reply

MrShadow
How can someone check if there is a floppy in the floppy drive or not and if not echo a personal message instead of the default abort/retry message? Can it be done with the exist option/check?

Maybe this can help you :

http://www.robvanderwoude.com/files/driverdydos.txt

Leave a comment


You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>