home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- User's Manual for DPV - Drive Path Volume
-
- DPV version 1.2
- December 8, 1990
-
- Copyright 1990, Sydney M. Willett
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - 1 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- TABLE OF CONTENTS
-
-
-
- TABLE OF CONTENTS ...................................... 2
-
- 1. DESCRIPTION ............................................ 3
-
- 2. DISTRIBUTION POLICY .................................... 3
-
- 3. OPERATION .............................................. 3
-
- a. GENERAL ............................................ 3
-
- b. COMMAND LINE PARAMETERS ............................ 3
-
- c. EXAMPLES ........................................... 4
-
- 4. ERRORLEVEL CODE MEANINGS ............................... 4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - 2 -
-
-
-
-
-
-
-
- 1. DESCRIPTION.
-
- a. DPV (an acronym for Drive Path Volume) checks if a drive exists, if a
- diskette is inserted in a floppy drive, if a path exists, or if a volume label
- matches. DPV returns errorlevels describing the success or failure of the
- requested operation. These errorlevels can be used in batch files to automate
- directory searches, checks for unformatted diskettes, proper diskettes
- inserted in drives, etc.
-
- b. DPV has been successfully tested with several computers using
- different versions of MS-DOS. I only used MS-DOS interrupts which are
- compatible with MS-DOS versions 2.X and later.
-
-
- 2. DISTRIBUTION POLICY.
-
- a. DPV is hereby freely given to the Public Domain. No fee is to be
- charged for its use.
-
- b. DPV is released "as is" with no implied warranty or guarantees. The
- author assumes no responsibility for any claims of damage incurred with the
- use of this program.
-
- c. DPV is to be distributed with the following files:
-
- DPV.C C source code
- DPV.EXE Executable program
- DPV12.DOC This manual
- TEST.BAT A simple batch file to display DPV errorlevel returns
-
-
- 3. OPERATION.
-
- a. GENERAL.
-
- (1) DPV.EXE must be either in the current directory or in the DOS
- path.
-
- (2) DPV is essentially useless when executed from the DOS prompt.
- You won't see any visible results. DPV returns errorlevel codes which are
- used in a batch file.
-
- (3) If a drive check fails, then any path or volume label checks will
- not be performed.
-
- b. COMMAND LINE PARAMETERS.
-
- (1) DPV is executed with the following command line parameters:
-
- DPV [drive:][path] [/Vvolume]
-
- drive: logical drive letter
- path: path (preceding \ searches from root
- /Vvolume volume label for search
-
-
-
-
- - 3 -
-
-
-
-
-
-
-
- (2) drive: The logical drive letter (A, B, C, D, etc.) DPV will
- detect floppy drives, hard disks, and ramdisks. (Should detect network
- drives, but I didn't have access to a networked machine to verify.) Absence
- of a drive letter instructs DPV to use the current drive.
-
- (3) path: A path preceded by a '\' is a full path name. A path
- not preceded by a '\' is appended to the current directory. The full path
- name is limited to 80 characters.
-
- (4) /Vvolume: /V tells DPV all of the following characters and spaces
- is a volume label. For this reason, the /V switch and the volume name must be
- the final command line argument. The volume label can be eleven characters
- long (including spaces.) Any characters more than eleven are ignored.
-
- (5) At least one parameter must be given. If no parameter is given,
- or an invalid parameter is given, a help screen will be displayed and
- errorlevel 7 returned.
-
- c. EXAMPLES.
-
- DPV a: Checks drive A:
-
- DPV work Checks current directory for a sub-
- directory named \WORK
-
- DPV \ws\work Checks current drive for directory named
- \WS\WORK
-
- DPV a:\ws\work Checks drive A: for directory named
- \WS\WORK
-
- DPV a: /vwork disk Checks drive A: for volume label WORK DISK
-
- DPV a:\ws\work /vwork disk Checks drive A: for directory named
- \WS\WORK and volume label WORK DISK
-
-
- 4. ERRORLEVEL CODE MEANINGS.
-
- Code Meaning
- ---- -------
- 0 disk in drive okay,
- and/or subdirectory exists,
- and/or volume label matches
- 1 volume label doesn't match
- 2 invalid path
- 3 both volume label doesn't match and invalid path
- 4 invalid drive letter
- 5 no diskette in drive
- 6 unformatted diskette in drive
- 7 invalid or no parameter(s)
-
-
-
-
-
-
-
- - 4 -
-