home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boldly Go Collection
/
version40.iso
/
TS
/
17A
/
ADQ.ZIP
/
ADQ.DOC
next >
Wrap
Text File
|
1992-02-04
|
16KB
|
381 lines
ADVANCED DOS QUIZ DOCUMENTATION
1. What is Advanced DOS Quiz?
2. Running Advanced DOS Quiz
3. Advanced DOS Quiz Questions
4. Registration Info
WHAT IS ADVANCED DOS QUIZ?
If you thought that DOS Quiz was hard, just give Advanced DOS Quiz (ADQ) a
try! If you thought that DOS Quiz was easy, then try out the questions in ADQ
and see your 100% score turn into a 50% score!
Like DOS Quiz, ADQ is quick and easy way to use. It can be used to test
anyone on their knowledge of very advanced DOS commands. ADQ is completely
taken on a DOS computer, and is completely self-contained. It takes the user
through a series of 20 questions, asking the user to perform unusual, difficult,
or arcane tasks in DOS. Unlike DOS Quiz, all 20 questions in ADQ are
categorized as Advanced.
At the end of ADQ, a score screen is displayed, which shows a listing of
all of the questions asked, what the main concept of each question was, and
whether the user answered the question correctly or not. The number and
percentage correct of the all questions asked is also displayed.
ADQ is probably too advanced to be use as a test in an office environment,
though if a position requires a high degree of DOS skill, this may be just the
ticket. Otherwise, ADQ should be used as a test of your total DOS knowledge,
and as a tutor for some of DOS's more obscure commands. As with DOS Quiz, ADQ
supports many different syntactical uses of each command and may teach you new
ways of doing old things.
However, it does not cover all switches of all commands. There are, after
all, only 20 questions. So if a particular command piques your interest, see
your DOS manual or on-line help (DOS 5.0 and above) for more on that command.
Note: As of Version 1.1, ADQ detects if you are using EGA 43-line mode or VGA
50-line mode before starting up. Though DOSQUIZ uses 25-line mode, the line
mode you started ADQ in will be reset when you leave.
RUNNING ADVANCED DOS QUIZ
Running ADQ is really quite simple - all you need to do is type ADQ at the
DOS prompt and away you go. The program is completely self-contained, so no
outside files are needed. The program is small, so it will run on nearly any
DOS machine.
As with DOS Quiz, ADQ normally requires a color monitor. Monochrome
monitors that emulate color monitors (such as b/w VGA) will work fine in color
mode. The use of color in the program has been kept to a minimum to allow
usage on a wide range of computers. A true monochrome version is available by
type "adq /m" at the DOS prompt.
After typing in ADQ, an intro screen will appear. After pressing any key
as requested, the user will be prompted for his or her name and Social Security
Number. This is for score-sheet identification purposes. The user is asked to
verify his or her entry. An instruction screen will then appear. After reading
the instructions and pressing any key, the quiz begins.
After finishing 20 questions, the score screen will appear. It may be
printed if there is a printer hooked to the computer's default printer port and
if <Shift>-<PrtScreen> is pressed. After pressing any key on the score screen,
the user will be asked if the quiz is to be taken again. This is a Yes or No
question. If Yes, the screen will go back to the Name/SSN screen. If No, then
ADQ will return control to DOS.
If a user does not know the answer to a question, he or she can either
guess or just press ENTER to skip answering. ADQ will mark the question as
being incorrectly answered and move on.
ADVANCED DOS QUIZ QUESTIONS
The following is a listing of all questions asked in ADQ, and their correct
responses. Note that though the "correct" answers are all presented here in
uppercase, all variations of upper and lower case are valid, as in DOS. Note
also that though they are not listed as valid responses, spaces are not required
before switches. For example, CHKDSK/V is the same as CHKDSK /V. No spaces are
required, either, when redirection is used, though not all of these responses
are listed. The following two commands are the same: DEBUG<TEST.SCR and
DEBUG < TEST.SCR. ADQ recognizes all such combinations.
1. Transfer system files to a diskette
The user will be asked to type a command that will transfer the system files
from the current hard disk to the diskette in drive A. Though not mentioned in
the Quiz, these files are the hidden files IO.SYS and MSDOS.SYS and COMMAND.COM.
The valid answers are:
SYS A: SYS C: A: SYS \ A: SYS C:\ A:
2. Use CHKDSK to show all files on drive, plus memory
The user will be asked to type the command that will show all files on the
current drive, report disk usage, and report memory usage. The valid responses
are:
CHKDSK /V CHKDSK /V C: CHKDSK /V C:\ CHKDSK C: /V
CHKDSK C:\ /V CHKDSK /V \ CHKDSK \ /V
If a \ is given as part of any command, the CHKDSK command will print "File not
found" at the end of the listing - ADQ will, too.
3. Use ECHO to dial a phone number with a modem
The user will be told to assume that there is a modem installed as COM1. The
user will be told to use the ECHO command and the Hayes-compatible AT command-
set to dial the number 555-1212. The valid answers are:
ECHO ATDT5551212 > COM1 ECHO ATDT 5551212 > COM1
ECHO ATDT5551212 > COM1: ECHO ATDT 5551212 > COM1:
In addition, the ATDP command may be used in place of ATDT, for use with pulse-
dialing. Also, a dash (-) may be placed in between the 555 and the 1212.
4. Delete all two-character files with wildcards
The user will be placed in the C:\QUIZ directory and be asked to use a DOS
command and wildcards to delete all files that have a two-letter filename. This
is probably one of the easier questions in ADQ. Valid responses are:
DEL ?? DEL .\?? DEL ..\QUIZ\?? DEL \QUIZ\??
In addition, the ERASE command may replace the DEL command.
5. Use LABEL or VOL to show volume label
The user will be asked to type the command that will allow them to see the
volume label of the current drive (C). The user is warned not to use the DIR
command to accomplish this task. That would be too easy. The user is also told
not to try to change the volume label. Valid responses are:
LABEL LABEL C: VOL VOL C:
The difference between the LABEL command and the VOL command is that the LABEL
command automatically asks you for a new volume label, whereas VOL merely shows
you the volume label. By passing LABEL a new volume label, the label is changed
without prompting. As ADQ uses DOS 5.0 responses, it will show the volume
serial number as well. This will not happen on all versions of DOS.
6. Use COPY to combine two files into one
The user will be asked to join the files FILE1.DOC and FILE2.DOC into one file,
entitled FILE3.DOC, using the COPY command. The user is advised that the files
are all in or to be in the current directory, C:\QUIZ, and is warned not to use
any pathnames in the command. The reason that pathnames are not used here is
because of the overwhelming number of possible valid responses to check for when
pathnames are permitted. For ADQ's purposes, the following is the valid
response:
COPY FILE1.DOC+FILE2.DOC FILE3.DOC
Note that ADQ will allow a space on either or both sides of the + sign. Also,
since it does not explicitly state which file's contents are to be first in the
destination file, placing FILE2.DOC before FILE1.DOC in the above answer is also
correct.
7. Create a COM file with DEBUG and redirection
The user will be told to type in the command that will redirect the contents of
the file TEST.SCR in the C:\QUIZ directory to the DEBUG command. The user is
warned not to use the TYPE command. Valid responses are:
DEBUG < TEST.SCR DEBUG < .\TEST.SCR
DEBUG < ..\QUIZ\TEST.SCR DEBUG < \QUIZ\TEST.SCR
In DOS, the command TYPE TEST.SCR | DEBUG has the same effect, but this question
was not intended to be a test of the use of TYPE.
8. Use FIND to find strings in a file
The user is asked to find the string "DOS QUIZ" in the file TEST.DOC in the
current directory, C:\QUIZ. The user is warned not to use redirection in the
command. The following are valid responses:
FIND "DOS QUIZ" TEST.DOC FIND "DOS QUIZ" .\TEST.DOC
FIND "DOS QUIZ" ..\QUIZ\TEST.DOC FIND "DOS QUIZ" \QUIZ\TEST.DOC
Using redirection, the following command would be valid:
TYPE TEST.DOC | FIND "DOS QUIZ"
As with question 7, however, this question is not a test of the use of TYPE.
9. Show files in a directory with DIR and wildcards
Another relatively simple command, the user is asked to show all files in the
current directory, C:\QUIZ, that have the letter D as the first letter of their
filename and extension. The user is warned not to use a pathname, for the
reason stated in question 6. The following are valid responses:
DIR D*.D* DIR D???????.D* DIR D*.D?? DIR D???????.D??
10. Make a file hidden
The user is asked to make the file TEST.DOC in the current directory, C:\QUIZ, a
hidden file. Valid answers are:
ATTRIB +H TEST.DOC ATTRIB +H .\TEST.DOC
ATTRIB +H ..\QUIZ\TEST.DOC ATTRIB +H \QUIZ\TEST.DOC
The +H may also be placed after the filename.
11. Set the baud rate of a COM port
The user is told to set the baud rate of COM1 to 9600. The following are valid
responses:
MODE COM1 96 MODE COM1 9600 MODE COM1 BAUD=96
MODE COM1 BAUD=9600 MODE COM1: 96 MODE COM1: 9600
MODE COM1: BAUD=96 MODE COM1: BAUD=9600
12. Copy changed files and update archive bit
The user is asked to type in the command that will copy all files in the current
directory, C:\QUIZ, with a .DOC extension to the diskette in drive A, but only
those files that have their archive bit set. At the same time, the archive bit
is to be reset if the file is copied successfully. The following responses are
valid:
XCOPY /M *.DOC A: XCOPY /M .\*.DOC A:
XCOPY /M ..\QUIZ\*.DOC A: XCOPY /M \QUIZ\*.DOC A:
The /M switch may be located either after the XCOPY, the *.DOC, or the A:
section of the response and still be considered valid.
13. Sort a file
The user is asked to sort the file FILE1.DOC, placing the sorted data in the
file FILE2.DOC, both of which are in the current directory, C:\QUIZ. The user
is warned not to use the TYPE command. The following are valid:
SORT < FILE1.DOC > FILE2.DOC SORT > FILE2.DOC < FILE1.DOC
Using the TYPE command, the following would be valid:
TYPE FILE1.DOC | SORT > FILE2.DOC
However, as stated in previous questions, this is not a test of the usage of the
TYPE command.
14. Print out a file to the default printer
The user is asked to the COPY command to send the file TEST.DOC in the current
directory, C:\QUIZ, to the standard parallel printer port. The following are
valid answers:
COPY TEST.DOC PRN COPY TEST.DOC PRN:
COPY TEST.DOC LPT1 COPY TEST.DOC LPT1:
COPY .\TEST.DOC PRN COPY .\TEST.DOC PRN:
COPY .\TEST.DOC LPT1 COPY .\TEST.DOC LPT1:
COPY ..\QUIZ\TEST.DOC PRN COPY ..\QUIZ\TEST.DOC PRN:
COPY ..\QUIZ\TEST.DOC LPT1 COPY ..\QUIZ\TEST.DOC LPT1:
COPY \QUIZ\TEST.DOC PRN COPY \QUIZ\TEST.DOC PRN:
COPY \QUIZ\TEST.DOC LPT1 COPY \QUIZ\TEST.DOC LPT1:
FYI, the TYPE command could be used in the following manner for the same result:
TYPE TEST.DOC | PRN
15. View a file one screen at a time
Finally, no warnings against using TYPE! The user is asked to use DOS commands
that will display the file TEST.DOC in the current directory, C:\QUIZ, on the
screen one screen at a time. The following are valid:
MORE < TEST.DOC MORE < .\TEST.DOC
MORE < ..\QUIZ\TEST.DOC MORE < \QUIZ\TEST.DOC
TYPE TEST.DOC | MORE TYPE .\TEST.DOC | MORE
TYPE .\QUIZ\TEST.DOC | MORE TYPE \QUIZ\TEST.DOC | MORE
16. Create a file from the keyboard and screen (CON)
The user is told to type the command that will allow the user to create the file
TEST.BAT in the current directory, C:\QUIZ. The following responses are valid:
COPY CON TEST.BAT COPY CON .\TEST.BAT
COPY CON ..\QUIZ\TEST.BAT COPY CON \QUIZ\TEST.BAT
TYPE CON > TEST.BAT TYPE CON > .\TEST.BAT
TYPE CON > ..\QUIZ\TEST.BAT TYPE CON > \QUIZ\TEST.BAT
All above instances of CON may be replaced by CON: as well.
17. Call a batch file from within another batch file
The user is asked to type the command that will allow the batch file GO.BAT to
be called by the batch file being created by a COPY CON type command. Once
GO.BAT has completed, it should return control to the calling batch file. The
user is told to assume that GO.BAT is in a directory in the PATH variable. The
following are valid:
CALL GO.BAT COMMAND /C GO.BAT COMMAND /CGO.BAT
18. Delete files with prompting
The user will be asked to type the command that will delete all .DOC files in
the current directory, C:\QUIZ. However, the command should prompt the user
before performing the deletion. The valid answers are:
DEL *.DOC /P DEL .\*.DOC /P
DEL ..\QUIZ\*.DOC /P DEL \QUIZ\*.DOC /P
The ERASE command may replace the DEL command. The /P MUST be at the end of the
command.
19. Make a logical drive out of a directory
The user is asked to make the directory C:\QUIZ into a logical drive named D.
The user will run the command from C:\. The following are valid:
SUBST D: \QUIZ SUBST D: QUIZ SUBST D: C:\QUIZ
20. Reset the DOS PATH environment variable
The user is asked to clear the search-path setting. The following are valid:
PATH; PATH ;
ADVANCED DOS QUIZ REGISTRATION
Registration
ADQ is shareware, and I retain all copyrights to the program. If you use and
like ADQ, I request that you donate $15 to continue to use it. If you do, and
also send a diskette (5¼ or 3½ Double or High density), I will include any new
version of ADQ, as well as any bonus utilities I have written at that time.
Please enclose an extra $1 to cover postage, and be sure to enclose your
address.
If you would like a customized version of ADQ, please contact me for a quote on
time and cost (if any). Registering your copy of DOS Quiz (and sending a
diskette with your registration) will automatically get you the monochrome
version of DOS Quiz.
SPECIAL DISCOUNT FOR USERS OF DOSQUIZ
DOSQUIZ is the "father" of ADQ, asking more basic quiz questions about DOS. It
is for new DOS users or to test basic DOS knowledge. If you like and use
DOSQUIZ personally or for business, and you wish to register both it and ADQ,
you can do so for only $20, as opposed to the regular $15 for each program.
DOSQUIZ can be found in the IBMAPP forum on CompuServe. If you send a diskette
with your order, and enclose $21 ($20 for registration and $1 to cover postage),
I will copy the newest versions of both programs onto your diskette. DOSQUIZ
uses the same interface as ADQ - only the names have been changed.
Steve Mount
RR 1 Box 320
Starksboro, VT 05487-9702
Contact me on CompuServe: ID 73720,3404
THE ADQ PROGRAM AND THIS MANUAL ARE COPYRIGHTED DOCUMENTS. THE OWNER OF THE
COPYRIGHT GIVES OTHERS PERMISSION TO DISTRIBUTE UNALTERED COPIES OF THE PROGRAM
AND DOCUMENTATION TO OTHER INTERESTED PARTIES. THIS PROGRAM IS NOT IN THE
PUBLIC DOMAIN. IF YOU USE ADQ, PLEASE PAY THE REGISTRATION FEE. IT WILL ENSURE
CONTINUED GROWTH OF THE PROGRAM FOR ALL USERS.
ADQ AND DOCUMENTATION COPYRIGHT (C) 1991 BY STEVE MOUNT
ALL RIGHTS RESERVED.