DIRECT.BAT ·
BAT ·
1.9 KB ·
1988-04-12 ·
from Compute-PC-Magazine-Disk_July-1988_Volume-2_No.4_Issue-6
echo off
cls
echo To prevent a directory listing from scrolling off the screen, use
echo the directory command with the /p option. This causes the program
echo to pause after filling the screen. When you're ready to read the
echo next section of the directory, press any key. (Because the directory
echo of this disk is relatively short, the command won't have much effect
echo here, but give it a try later on a disk with more files.)
echo .
echo The command looks like this: DIR /P
pause
dir /p
pause
cls
echo The same directory can be displayed in wide format using the
echo /w option. Directories built with this option include neither
echo file size information nor the time and date stamp. Only the
echo filenames are displayed.
echo .
echo The command looks like this: DIR /W
pause
dir /w
pause
cls
echo If you're looking for a specific type of file, let the computer
echo do the work for you by giving it something specific to look for.
echo For example, say you wanted to see what command files were on
echo your disk. Use the wildcard character (*) with the .COM extension
echo to locate all the command files quickly.
echo .
echo The command looks like this: DIR *.COM
pause
dir *.com
pause
cls
echo Perhaps you've forgotten the name of an important file but you
echo remember that it begins with the letter "S". You can use the
echo use the wildcard character in conjunction with the letter "S" to
echo have the computer show you only the "S" files.
echo .
echo The command looks like this: DIR S*.*
pause
dir s*.*
pause
cls
echo Sometimes you'll be working with several files that have the same
echo root filename and different extensions. For example, several files on
echo this disk uses the root filename DEMO. To see all the DEMO files
echo use the character in place of the extension.
echo .
echo The command looks like this: DIR DEMO.*
pause
dir demo.*