home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-01-15 | 52.3 KB | 1,801 lines |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DABUTIL Version 2.00
-
- User's Manual
-
- Copyright 1988-1991 by Don Branson
-
-
-
-
-
-
-
-
-
- Nomenclature
-
-
-
- Any text surrounded by square brackets [] is optional. If you
- don't enter it, some default action will be taken by the program.
- For example, if you run the LD (List Directory) program by typing:
-
- LD A:
-
- then the list directory program will list the directories on the
- 'A' drive, no matter what the current drive is. On the other hand,
- if you run the LD program by typing:
-
- LD
-
- then the list directory program will list the directories on the
- current drive. The default action in this case is to use the
- current drive.
-
- The help option (/h) can be used with all programs in DABUTIL,
- to get a short description of the program and all available options.
- For example:
-
-
- CATALOG /h
- LD /h
- FILEMAN /h
-
-
-
-
-
-
-
-
- Acknowledgements
-
- I would like to thank my wife, Dot, and my sons, Peter and Taylor for
- the sacrificies they made while I was working on Dabutil.
-
-
- Copyright Notice
-
- This User's Manual and all programs associated with DABUTIL are copyright
- 1991 by Don Branson and are protected by the copyright laws of the United
- States of America, and by international treaty provisions. The software
- is shareware and may therefore be copied for others to use, as long as
- the software and associated documentation are not modified in any way.
- If you make any of this package a part of your regular working environment,
- you should print out the registration form found in the file DABUTIL2.REG
- and fill it out. DABUTIL2.REG can be printed using either of these two
- DOS commands:
-
- PRINT DABUTIL2.REG
- or
- TYPE DABUTIL2.REG >PRN
-
- If you don't have a printer, that's O.K., any reasonable facsimile will be fine.
-
-
-
- Disclaimer
-
- While every precaution has been taken in the preparation of this package, the
- author assumes no responsibility for errors or omissions. No liability is
- assumed for direct, indirect, or consequential damages resulting from the use
- of this software. It is the sole responsibility of the user of this package to
- determine compatibility with the user's system.
-
-
-
-
-
-
-
-
- Table of Contents
-
-
-
-
- Installing Dabutil2..................1
-
- When something goes wrong............2
-
- CATALOG..............................3
-
- DI...................................5
-
- DIRM................................10
-
- DOSMENU.............................12
-
- DOW.................................16
-
- DTIME...............................17
-
- ENC.................................18
-
- EVENTMAN............................19
-
- FF..................................25
-
- FILEMAN.............................28
-
- LD..................................37
-
- PROCESS.............................40
-
- SBE.................................41
-
- SD..................................48
-
- SETPRT..............................53
-
- Appendix A, Entry Windows...........55
-
-
-
-
-
-
-
-
- Basic DABUTIL2 Installation
-
-
- 1) Insert the disk with DABUTIL on it into either drive A or B.
-
- 2) "LOG IN" to that drive with either:
- A: or
- B:
- and press RETURN.
-
- 3) Enter the command DABINST and press return.
-
- 4) Follow the instructions given to install the DABUTIL package. DABINST
- will install DABUTIL in a directory named DABUTIL, which it will
- create if necessary. It will also add the new directory to your path
- command.
-
- 5) Re-boot your computer to activate the new PATH command in AUTOEXEC.BAT
-
- 6) Enter the command DOSMENU to see demonstrations of each program.
-
-
- CAUTION:
- While you can change the directory given, it is recommended that you
- use DABUTIL, since any existing directory may have files with the same
- name as a DABUTIL file, and they might be lost when the install is
- done. You have the option of keeping the old files or overwriting them.
-
-
- See Appendix A, "Entry Windows" for information on entering the name
- of the directory.
-
-
- Installation Technical Information
-
-
- The DABUTIL files are stored in a file named DABUTIL2.EXE. This is a self-
- extracting archive, which is used by DABINST.
-
- DABINST will attempt to install DABUTIL on the same drive as the first
- directory in your PATH command. The default directory for installation
- is DABUTIL, but you can select another directory. If the directory is NOT
- already on your path, DABINST will look on the same drive to find
- AUTOEXEC.BAT, and add the directory to any PATH command found there. If
- the directory is already on the PATH command in AUTOEXEC.BAT, then it will
- not be added.
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 1 -
-
-
-
-
-
-
-
-
- When something goes wrong
-
-
-
- When you are using the programs in DABUTIL, you may find that
- something does not work correctly, or as you expected. This can
- occur for a number of reasons:
-
- - The program has a bug
-
- - The program is not compatible with your software (it may be your
- version of DOS or it may be some other software)
-
- - The program is not compatible with your hardware
-
-
- First, check the User's Manual and the associated help screens, to
- see if either one addresses the problem. If it is the case that there
- is a discrepancy between the way the manual says the program should
- work, and the way it actually works, then you should report the problem
- to Simian Id Software. When you contact Simian Id Software, you should
- report:
-
- - What kind of PC you are using. (IBM or brand of compatible)
-
- - What other hardware may be relevant. (Video type, disk type,
- printer type)
-
- - What version of DOS you are running.
-
- - Your user registration number.
-
-
- If it is the case that the software behaves in accordance with
- the manual, but differently than you would want it to, then that
- is an opportunity for you to influence the direction which DABUTIL
- takes in future versions. If a program does not do something it
- ought to do, contact Simian Id Software and let us know what should
- be changed. Not everyone's changes can be added to a program,
- but it is to the advantage of Simian Id Software to include new
- ideas, thus improving the usefulness of the package for everyone.
-
-
-
-
-
-
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 2 -
-
-
-
-
-
-
-
-
- CATALOG (Disk Catalog)
-
-
- Description
-
- CATALOG lists files on a diskette or fixed disk on the screen.
- The list may be redirected to a printer, see examples. The disk
- name, date and free space are printed at the top of every page.
- Each directory found on the diskette is shown, and all of the
- files in each directory are shown. When one or more of the archive
- switches (-arc, -zip, etc.) are used, the contents of appropriate
- archive files are listed.
-
-
- Command Format
-
- catalog [d:] [-w] [archives]
-
-
- For each file listed, the file name, extension, size, are shown. Also,
- the date and time of the last change to the file are shown.
-
- The first option (d:) can be used to generate a catalog of a disk in a
- drive other than the current drive.
-
- The archives that CATALOG recognizes are ARC, LBR, LZH, PAK, PKA,
- ZIP, and ZOO. They can be specified individually (see the examples
- section), or the option -ALL can be used to list the contents of
- all archive types known to CATALOG.
-
- The CRC and compressed size of file are shown for files in an
- archive. The second option (-w) specifies that a description of
- compression technique should be printed for each file in the an
- archive. If the wide option is selected, the print width is 132
- characters, so set your 80-column printer to compressed mode
- if it has that option. (Consult your printer manual.)
-
- If no archive options are specified, the contents of the archives
- will not be listed. If one or more of the archive switches are
- selected, the contents of the corresponding archive types will be
- listed. To list the contents of all archive types known to CATALOG,
- select the '-all' option.
-
-
-
-
-
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 3 -
-
-
-
-
-
-
-
-
- Examples
-
- catalog
- will list all the files in all directories of the current disk on
- the screen. Files contained in archive files will not be listed.
-
- catalog >prn
- will create the same list, but the output will be sent to the printer.
-
- catalog a:
- will list the files in all directories of the disk in drive A on
- the screen.
-
- catalog a: -arc
- will list all files of the A disk. In addition, files in .ARC
- files will be listed.
-
- catalog b: -zip
- will list all files of the B disk. In addition, files in .ZIP
- files will be listed.
-
- catalog -all
- will list all files of the current disk. In addition, files in
- all archive files known to CATALOG will be listed.
-
- catalog -w -arc
- will list all files of the current disk. In addition, when files
- in archive files are listed, a short description of the technique
- used to compress the file will be displayed. When the '-w' option
- is specified, the output is 132 characters wide, so probably, you
- will want to set your printer to 132 columns. Next, run CATALOG,
- redirecting the output to the printer, like this:
-
- catalog -w -arc >prn
-
- The following examples perform the same operation as the previous
- example, but specify that a catalog should be printed for the disk
- in the A drive:
-
- catalog a: -w -arc >prn
- catalog -w -arc a: >prn
-
- These last two examples demonstrate that the order of the options is
- not important.
-
-
-
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 4 -
-
-
-
-
-
-
-
-
- DI (Disk Information)
-
-
- Description
-
- DI shows information about a disk, and can also show information
- about the location and readability of files. It shows sector size,
- track size, cluster size, FAT (File Allocation Table) size, root
- directory size, and a number of other important facts. (See the
- following pages for a complete list.) DI attempts to read the boot
- record, the FAT, and the root directory to determine if they are
- readable. If a file, directory, or search pattern is specified, DI
- will read each sector of each file or directory and display the
- sector numbers. Also, DI attempts to read each sector and will
- indicate the type of error found, if one occurs. A drive letter
- may be specified with DI.
-
-
- Command Format
-
- di [d:][filename]
-
- Where filename can be:
- di filename
- di \subdirectory
- di \subdirectory\filename
- di c:\subdirectory\filename
-
-
- Wildcards (? or *) are allowed in the file name. When a file is
- specified, the clusters that the file occupies are listed. When
- a subdirectory is specified, the clusters which that subdirectory
- occupies are listed.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 5 -
-
-
-
-
-
-
-
-
-
-
- Examples
-
- di readme.doc
- will list the boot record information for the current disk and
- the clusters and sectors for readme.doc. DI will search for
- README.DOC in the current directory.
-
- di \readme.doc
- will list the same disk information, except that the backslash will
- indicate to DI to search in the root directory of the current disk
- for README.DOC.
-
- di c:\readme.doc
- will list information for the C drive, even if it is not the current
- drive.
-
- di \word\readme.doc
- will tell DI to look on the current disk, in the subdirectory
- WORD, to find README.DOC.
-
- di c:\word\readme.doc
- will tell DI to look on disk C: in subdirectory WORD for readme.doc.
-
-
-
- Instead of a single file such as readme.doc, search pattern can
- be specified, for example:
-
- di c:\word\*.*
-
- will tell DI to go to disk C: in the subdirectory WORD, and display
- the sectors for each file found there.
-
-
-
- Instead of a file, a subdirectory can be specified, for example:
-
- di c:\word
-
- If WORD is a subdirectory, DI will list the clusters and sectors
- that WORD occupies.
-
-
-
-
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 6 -
-
-
-
-
-
-
-
-
-
-
- Output
-
-
- DI first attempts to read the boot record, and shows if there
- are any problems reading it. If read successfully, this is the
- information it contains (all numbers are shown in decimal and
- hexadecimal). This is a typical example of what information DI
- shows:
-
-
- DI (Disk Info) Version 2.00 Copyright 1988, 1989, 1990 by Don Branson
-
- Boot record read successfully.
- System id: DIGITAL
- Disk format: Double-sided, 9 sectors, 80 tracks
- Sector size (in bytes): 512 (0x0200)
- Sectors per cluster: 1 (0x0001)
- Total sectors on disk: 2880 (0x0b40) 16-bit sector numbers
- Total clusters on disk: 2880 (0x0b40)
- Sectors per track: 18 (0x0012)
- Number of heads (sides): 2 (0x0002)
- Total cylinders: 80 (0x0050)
- Disk capacity: 1440K (0x05a0)
- FAT size (in sectors): 9 (0x0009) 12-bit FAT entries
- Copies of the FAT: 2 (0x0002)
- First directory block: 19 (0x0013)
- Number of directory entries: 224 (0x00e0)
- Directory size (in sectors): 14 (0x000e)
- Number of reserved sectors: 1 (0x0001)
- Special reserved sectors: 0 (000000)
-
- FAT read successfully.
- Directory read successfully.
-
-
- The numbers are shown in both decimal and hexadecimal formats.
-
-
-
-
-
-
-
-
-
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 7 -
-
-
-
-
-
-
-
-
- / System id:
- Indicates what operating system was used to format
- the disk. For example: IBM 3.1 Sometimes, if the
- disk was formatted using a different version of DOS
- than the one you use, this can cause directories to
- be corrupted. Consult your DOS Manual when
- upgrading your system to a new version of DOS.
-
- / Sector size:
- The size in bytes of a disk sector (usually 512).
-
- / Sectors per cluster:
- Files are allocated one cluster at a time. A cluster
- is a contiguous group of sectors.
-
- / Total sectors on disk:
- Includes boot record, FAT, root directory, and data
- area. DI also indicates if 16-bit or 32- bit sector
- numbers are in use on this disk.
-
- / Total clusters on disk:
- The total number of clusters on the disk. This is
- derived using the formula:
-
- Total sectors / sectors-per-cluster.
-
- / Sectors per track:
- Each track (concentric ring) on a disk surface is
- divided into this number of sectors.
-
- / Number of heads (sides):
- The number of recording surfaces (and therefore the
- number of read/write heads). Diskettes have either
- one or two sides. Hard drives usually have more.
-
- / Total cylinders:
- The total number of cylinders on the disk. A cylinder
- consists of a set of tracks which is equidistant from
- the center of the disk. Each recording surface will
- have one track in each cylinder.
-
-
-
-
-
-
-
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 8 -
-
-
-
-
-
-
-
-
- / Disk capacity:
- Total storage in kilobytes. Includes the boot record,
- the FAT, the root directory, and the data area.
-
- / FAT size (in sectors):
- The FAT (File Allocation Table) is a table which
- contains lists of the clusters allocated to each
- file. The value shown is the size of a single copy
- of the FAT. DOS usually keeps two copies of the
- FAT on every disk, in case the first copy becomes
- damaged. DI also indicates if the FAT contains
- 12-bit or 16-bit cluster numbers.
-
- / Copies of the FAT:
- Typically, two copies are kept of the FAT. If
- the first becomes unreadable, the second is used.
-
- / First directory block:
- The first sector assigned to the root directory. The
- root directory is assigned in a single contiguous
- group of sectors.
-
- / Number of directory entries:
- The root directory is fixed in size. This number is
- the maximum number of entries that it may have.
-
- / Directory size (in sectors):
- The total sectors required to hold the number of
- entries given above.
-
- / Number of reserved sectors:
- This is the number of sectors reserved which are
- located before the FAT. Typically, one sector is
- allocated, and used for the boot record.
-
- / Special reserved sectors:
- Includes the number of sectors of previous partitions
- for a hard disk, and other DOS allocations.
-
-
-
-
-
-
-
-
-
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 9 -
-
-
-
-
-
-
-
-
- DIRM (Directory Maintenance)
-
-
- Description
-
- DIRM is a full-screen directory maintenance utility which allows
- you to manage your subdirectories in ways beyond what DOS can do.
- DIRM will:
-
- - Allow easy navigation from directory to directory.
-
- - Rename directories.
-
- - Hide/unhide directories.
-
- - Create/delete directories
-
- DIRM allows you to easily change the name of any subdirectory.
-
- DIRM also allows directories to be hidden. By doing this, the
- directories will not show up when normal DOS commands are used,
- such as the DIR command. If you want to unhide a directory,
- DIRM will do that also.
-
- DIRM also allows directories to be easily created and deleted.
- If the subdirectory to delete contains any subdirectories or
- files, those must be deleted with FILEMAN or the DOS ERASE
- command before you can delete the directory in which they
- reside.
-
- The F1 key will display a help screen.
-
-
- Command Format
-
- dirm
-
- All operations are performed within DIRM by using the arrow keys
- and function keys. The function keys available are displayed
- on the screen:
-
-
-
-
-
-
-
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 10 -
-
-
-
-
-
-
-
-
- ,-------------------------------------------------------------------------^
- | |
- | DIRM - Directory maintenance, Copyright (c) 1989, 1990 by Don Branson |
- | |
- | |
- | ,------------^ |
- | | DOS | Use arrow keys to select a subdirectory. |
- | | WP | |
- | | UTILITY | HOME - Top of list. |
- | | | END - End of list. |
- | | | |
- | | | F1 - Help! F2 - Change current drive. |
- | | | F3 - Go to directory. F4 - Rename directory. |
- | | | F5 - Hide directory. F6 - Unhide directory. |
- | | | F7 - Delete directory. F8 - Create new directory. |
- | | | |
- | | | Use ESC to quit. |
- | | | |
- | | | |
- | | | |
- | | | |
- | | | |
- | +------------; |
- | Current directory: |
- | C: |
- | |
- +-------------------------------------------------------------------------;
-
-
-
- ESC - Return to DOS
-
- These functions are performed by the following function keys:
- F1 - Help
- F2 - Enter a new drive letter
- F3 - Change the current directory to the one selected
- F4 - Rename the selected directory, see Appendix A, "Entry Windows"
- F5 - Mark the directory as a hidden directory
- F6 - Remove the hidden flag from the directory
- F7 - Delete the directory. All files and subdirectories
- must be removed first.
- F8 - Create a new directory. You will be asked to supply
- a name.
-
- The current directory is shown at the bottom of the screen. The
- subdirectories in the current directory are shown within the box.
- Use the arrow, Home, End, PgUp, and PgDn keys to move the cursor.
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 11 -
-
-
-
-
-
-
-
-
- DOSMENU (DOS Menu Utility)
-
-
- Description
-
- DOSMENU is a program which displays a menu of options, and
- allows one to be selected. The commands for that option are
- executed, then the menu is re-displayed. This allows programs
- to be used easily, without having to remember the particular
- combination of DOS commands required to run them.
-
-
- Command Format
-
- dosmenu [menufile]
-
- DOSMENU uses the file DOSMENU.TXT by default. DOSMENU.TXT contains
- a description of the options displayed on the menu, and the commands
- executed by each option. Any number of files can be set up for use
- with DOSMENU. To use one of these alternate files, specify the name
- of the file on the command line, and the alternate file will be used.
-
-
- Setting up the menu description file
-
- For example, say that we want to be able to use the LD program
- from the menu. Assume that LD is on your C drive, in the directory
- DOS. To use a program from a menu, we first need to enter it into
- the menu, in this manner:
-
- 1) Edit the file DOSMENU.TXT. SBE (included in DABUTIL) may be used
- for this purpose by entering:
-
- sbe dosmenu.txt
-
- 2) Add these lines to the file: If DOSMENU.TXT already has something
- in it, then add these lines to the end. If the menu entry for
- "A" has already been used, then use a different letter.
-
- A
- List all the directories on this disk
- C:\DOS\LD;
- PAUSE
-
- The first character of the first line is the menu option letter.
- You may any printable character here, such as A, M, 0, 1, @, #, &,
- and so forth. A character may be use only once.
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 12 -
-
-
-
-
-
-
-
-
- The second line is the description that will displayed when the
- menu is on the screen.
-
- The third and following lines are DOS commands that are needed to
- run the program. The final DOS command, "PAUSE", will leave the
- display on the screen until you press a key, so that you can see
- the display before returning to the menu. In this case, two
- commands are required, so the first one ends with ';' to indicate that
- more commands follow. Whenever more than one command is required, use
- a semicolon (;) on all commands except for the last.
-
- This is the general format used in DOSMENU.TXT to set up a menu:
-
- A
- Description
- Command
- B
- Description
- Command1;
- Command2;
- Command3
- C
- Description
- #Command1;
- Command2
- .
- .
- .
-
- Each item to be displayed on your menu requires:
- 1 - A character to be entered by the user.
- 2 - A description to be shown to the user.
- 3 - The command or commands, as you would enter them at the
- DOS prompt, including any arguments. If there are more
- commands than one to execute for the option, follow each
- with a semicolon (;) except for the last one.
-
- These three things must be entered for each option, on separate
- lines, in the order given. The first option can be any printable
- character: letter, number or any character that you can type at
- the keyboard.
-
- If a pound sign precedes the first command in the sequence, DOSMENU
- recognizes that it should release all the memory it uses before it
- executes the commands. It is known as the "0K" option, since
- DOSMENU uses 0K of RAM when executing programs in this way. The third
- menu option specified above uses the "0K" option. It is useful for
- large programs which would not execute unless they have all your
- memory available.
-
-
- DABUTIL Version 2.0 Documentation
- - Page 13 -
-
-
-
-
-
-
-
-
- Displaying the Menu
-
- To display the menu that you have just set up, type DOSMENU and
- press RETURN. The file DOSMENU.TXT needs to be in the current
- directory, and the file DOSMENU.COM should be in the current
- directory or in a directory specified by the PATH command. You can
- have the menu displayed when your computer is first turned on by
- putting the command DOSMENU into your AUTOEXEC.BAT file.
-
- To use DOSMENU with more than one menu, you may create menu files
- with names other than DOSMENU.TXT, for example:
-
- Create a file called DOSMENU.TX2, in the same manner as described
- above. Then, execute DOSMENU by typing this command:
-
- dosmenu dosmenu.tx2
- This tells DOSMENU to use the alternate menu instead of DOSMENU.TXT.
- You can create a number of menu files, and then specify which one
- you want to use.
-
- For an example of how to use alternate menus, see the files
- PRINTER.BAT and PRINTER.TXT included with DABUTIL. PRINTER.BAT
- is a batch file which executes DOSMENU using the menu option
- file PRINTER.TXT.
-
-
- DOSMENU troubleshooting hints
-
- - If nothing will execute, it may be that DOSMENU cannot find your
- COMMAND.COM file. This will happen if COMMAND.COM is hidden, or
- may happen if you used the SET command to change the COMSPEC
- variable. If COMMAND.COM is hidden because you need to protect
- it, try setting the Read-only attribute instead.
-
- - If a command in DOSMENU.TXT fails, DOSMENU will not attempt to
- execute subsequent commands.
-
- - If you get the error message "Option too long" this can refer to
- the letter, the description, or the commands. The letter must be
- one character, the description can be up to 75 characters. A
- command can be up to 180 characters long. If a command is
- rejected as too long, and it is less than 180 characters, check
- to make sure that the previous command ends with a semi-colon (;).
-
-
-
-
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 14 -
-
-
-
-
-
-
-
-
- - If an option executes, but the display returns to the menu to
- quickly to read it, add the PAUSE command as the last command
- for that option.
-
- - If you have a large program which executes correctly from the
- DOS prompt, but will not work from DOSMENU, try this:
-
- DOS commands as entered a prompt:
-
- cd \word5
- word
-
- Use these commands in DOSMENU.TXT:
-
- #cd \word5;
- word
-
- The '#' used as the first character of the first command tells
- DOSMENU to write all the commands for this option to a batch
- file, then execute the batch file. This "0K" option frees the memory
- used by DOSMENU, so that your large application will have enough
- memory to execute. The semicolon on the end of the first command
- tells DOSMENU that the next line of the file is another command
- for the same option, as shown before.
-
- Note that DOSMENU will create a file named '$DOSM01$.BAT' whenever
- it is used, so the presence of this file on your disk is normal.
- This file is used to implement the "0K" option, but must always
- be present to satisfy DOS when it is used.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 15 -
-
-
-
-
-
-
-
-
- DOW (Day of Week)
-
-
- Description
-
- DOW returns the day of week in the DOS errorlevel, which can then
- be used in a batch file. The errorlevel is set to 0 for Sunday,
- 1 for Monday, and so forth, so that Saturday is indicated by an
- errorlevel 6.
-
- DOW can be used in a batch file to determine the day of week and
- display it. See Z.BAT, included with DABUTIL, for an example of
- how this works.
-
- DOW is also useful in conjunction with EVENTMAN, for such cases
- as skipping a daily process on weekends, or similar instances.
- This listing of the file Z.BAT shows how DOW might be used in
- a batch file:
-
-
-
- echo off
- dow
- if errorlevel 6 goto weekend
- if errorlevel 5 goto Friday
- if errorlevel 4 goto Thursday
- if errorlevel 3 goto Wednesday
- if errorlevel 2 goto Tuesday
- if errorlevel 1 goto Monday
- if errorlevel 0 goto weekend
- exit 1
- :weekend
- echo Weekend, not executing daily process
- exit 0
- :monday
- echo Today is Monday
- exit 0
- :tuesday
- echo Today is Tuesday
- exit 0
- :wednesday
- echo Today is Wednesday
- exit 0
- :thursday
- echo Today is Thursday
- exit 0
- :friday
- echo Today is Friday
- exit 0
-
-
- DABUTIL Version 2.0 Documentation
- - Page 16 -
-
-
-
-
-
-
-
-
- DTIME (Display Date and Time)
-
-
- Description
-
- DTIME is a command which displays the current date and time in
- a format which is easy to read. DTIME can be used at the command
- line, or in batch files. Including DTIME in your AUTOEXEC.BAT file
- would cause the current date and time to be displayed when you
- first start up your system. DTIME is also useful for use with
- EVENTMAN, for displaying the start and stop time of events and
- processes.
-
-
- Command Format
-
- dtime
-
-
- Example
-
- dtime
-
- The time is 9:04 P.M. on Wednesday, January 2, 1991
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 17 -
-
-
-
-
-
-
-
-
- ENC (Encrypt)
-
-
- Description
-
- ENC encrypts a file using the supplied password. This program
- performs a simple encryption, and is useful against casual prying,
- but does not necessarily comply with any standards for security.
-
-
- Command Format
-
- enc file1 file2 password
- Where file1 is the file to encrypt, file2 is the resultant
- encrypted file, and password is used to perform the encryption.
- To recover the contents of file1, type:
-
- enc file2 file3 password
- File3 will now contain what file1 contained. Password
- must be keyed exactly the same: case and length, etc.
-
- If the password contains spaces, it must be
- enclosed in double quotes:
-
- enc file1 file2 "pass word"
-
-
- You must know the password in order to restore the original
- contents of the file, since the password is not saved anywhere.
-
-
- Example
-
- enc z.bat z.enc "super secret"
-
- The file Z.ENC now contains the file Z.BAT in encrypted form.
-
- enc z.enc z.une "super secret"
-
- The file Z.UNE now contains an exact copy of the file Z.BAT
-
-
-
-
-
-
-
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 18 -
-
-
-
-
-
-
-
-
- EVENTMAN (Event Manager)
-
-
- Description
-
- EVENTMAN is a program which allows you to create events and
- processes. An event is a sequence of DOS commands which
- perform some task. A process is a list of events, which has a
- starting date and time, and a time interval for repetition.
- The processes created with EVENTMAN are run using the program
- PROCESS, which is part of DABUTIL.
-
- EVENTMAN is used for any application which requires that programs
- be executed on a regular basis, that is, daily, weekly, monthly,
- or some other interval. Also, EVENTMAN will handle an application
- that needs to be run once, but at some time when the system will
- be unattended. An example of how to use EVENTMAN to sign on to an
- electronic Bulletin Board System (BBS) follows. Also, EVENTMAN is
- useful for managers of systems which require regular backups. Any
- case where some process needs to be run unattended at a certain
- time or run repeatedly can be addressed by EVENTMAN. An example of
- how to use EVENTMAN follows, in order to demonstrate how it is
- used and clarify some details.
-
-
- Command Format
-
- eventman
-
- The files which EVENTMAN uses are always stored in the current
- directory.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 19 -
-
-
-
-
-
-
-
-
- Example
-
- Automatic bulletin board signon
-
- The files necessary to try this example are provided with
- DABUTIL, with the exception of the file MSK232A.EXE. This
- file is the executable file for KERMIT version 2.32. In order
- to run this demonstration, you will need KERMIT, which is a
- terminal emulation program which is in the public domain, and
- commonly available. This demonstration uses the KERMIT script
- file capability, but any terminal emulation program which allows
- operation without manual intervention could be used.
-
- First, run EVENTMAN from the DOS prompt, and you will see a
- screen that looks like this:
-
-
- ,---------------------------------------------------------------------------^
- | EVENTMAN - Event/Process Manager, Copyright (c) 1989, 1990 Don Branson |
- | |
- | F1 - Help F2 - Edit event F3 - Add event F4 - Delete event |
- | F5 - Define processes ESC - Return to DOS |
- | ,-----------------------------------------------------------------------^ |
- | |001 DISPTIME Display current system time | |
- | |002 LINE Display a line of text | |
- | |003 KERMIT Signon to a BBS, retrieve and print new messages | |
- | | | |
- | +-----------------------------------------------------------------------; |
- | |
- | |
- | |
- | |
- | |
- | |
- | |
- | |
- | |
- | |
- +---------------------------------------------------------------------------;
-
-
-
-
-
-
-
-
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 20 -
-
-
-
-
-
-
-
-
- This example uses a number of events. The first is DISPTIME,
- which prints the current time on the standard printer. It is used
- to print the starting and ending time for the process. The second
- event used is LINE, which sends a row of dashes to the printer.
- It is used to print a line separating each execution of the process.
- The last event used is KERMIT, which executes the batch file
- KERMIT.BAT, and prints the session log. KERMIT.BAT is necessary
- because KERMIT does not return a meaningful error code, so the
- DOS EXIT command is used to clear the error flag.
-
- You may use the arrow, TAB, HOME, END, PgUp, and PgDn keys to select
- events. Use F2 to edit the event file currently selected. An event
- file contains commands executable at the DOS prompt (like a batch
- file.) Use F3 to create a new event, and F4 to delete an existing
- event. Pressing ESC returns you to the DOS prompt.
-
- One process, named MESSAGE, is used for this example. While viewing
- the previous screen, press F5 to define processes, and this screen
- will be displayed:
-
-
- ,---------------------------------------------------------------------------^
- | EVENTMAN - Event/Process Manager, Copyright (c) 1989, 1990 Don Branson |
- | |
- | F1 - Help F2 - Edit process F3 - Add process F4 - Delete process |
- | ESC - Return to event list |
- | |
- | ,-----------------------------------------------------------------------^ |
- | |001 DISPTIME Display current system time | |
- | |002 LINE Display a line of text | |
- | |003 KERMIT Use KERMIT to signon to a BBS and retrieve new messages | |
- | | | |
- | +-----------------------------------------------------------------------; |
- | ,--------------------------------------------------------^ |
- | |001 MESSAGE D Wednesday, October 3, 1990 2:00 A.M. |
- |
- | | | |
- | | | |
- | | | |
- | +--------------------------------------------------------; |
- | |
- | |
- | |
- | |
- | |
- | |
- +---------------------------------------------------------------------------;
-
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 21 -
-
-
-
-
-
-
-
-
- From here, select the process MESSAGE, then press F2 to edit the
- process MESSAGE, and this screen will be displayed:
-
-
- ,---------------------------------------------------------------------------^
- | EVENTMAN - Event/Process Manager, Copyright (c) 1989, 1990 Don Branson |
- | |
- | F1 - Help F2 - Edit process F3 - Add process F4 - Delete process |
- | ESC - Return to event list |
- | |
- | ,-----------------------------------------------------------------------^ |
- | |001 DISPTIME Display current system time | |
- | |002 LINE Display a line of text | |
- | |003 KERMIT Use KERMIT to signon to a BBS and retrieve new messages | |
- | | | |
- | +-----------------------------------------------------------------------; |
- | ,--------------------------------------------------------^ |
- | |001 MESSAGE D Wednesday, October 3, 1990 2:00 A.M. |
- |
- | | | |
- | | | |
- | | | |
- | +--------------------------------------------------------; |
- | F1 - Help ESC - Cancel entry of process |
- | Process name: MESSAGE |
- | type: D (Daily,Weekly,Monthly,Single,Other) |
- | Start date: 1990/10/3 (YYYY/MM/DD) Wednesday, October 3, 1990 |
- | Start time: 02:00 (HH:MM) 2:00 A.M. |
- | |
- | Events: DISPTIME,KERMIT,DISPTIME,LINE |
- | |
- | |
- | |
- +---------------------------------------------------------------------------;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 22 -
-
-
-
-
-
-
-
-
- MESSAGE is a type 'D' process, which means that it is run every
- day at the same time. Use 'W' to indicate weekly processes, and
- 'M' for monthly processes. Use 'S' to indicate processes that
- will be run a single time. Use 'O' to indicate that you want to
- specify your own interval for repeating the process. When selecting
- 'O', an additional option will appear where you should enter the
- repeat interval in minutes.
-
- Each process has a start date and time. The time shown is the
- first time it will be run. When processes are run (using PROCESS),
- this date and time will be reset based on the type of process.
- In other words, every time a daily process is run, the process
- date is set to the next day. For a weekly process, the date is
- set to the same day of the next week. Monthly processes are
- reset to the same day next month. Single process are run only
- once, so the date is not incremented. Type 'O' processes are
- reset by adding the number of minutes you specify to the process
- time, and adjusting the date accordingly.
-
- The process MESSAGE will execute the events specified in the
- order they are listed:
-
- DISPTIME
- KERMIT
- DISPTIME
- LINE
-
- MESSAGE first displays the time with the event DISPTIME.
- Then MESSAGE executes the KERMIT event, which runs KERMIT.BAT,
- then prints out the session log from KERMIT. MESSAGE then runs
- the event DISPTIME again to display the time. Finally, MESSAGE
- runs the event LINE, which prints a separator line.
- The program PROCESS is used to run processes. To use it, enter
- the command PROCESS at the DOS prompt. A screen like this one
- will be displayed:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 23 -
-
-
-
-
-
-
-
-
- ,---------------------------------------------------------------------------^
- | PROCESS - Real-time process execution, Copyright (c) 1990 Don Branson |
- | |
- | F1 - Help ESC - Cancel processing |
- | |
- | The time is 7:11:17 A.M. on Tuesday, October 2, 1990 |
- | |
- | MESSAGE D Wednesday, October 3, 1990 2:00 A.M. |
- | |
- | |
- | |
- | |
- | |
- | |
- +---------------------------------------------------------------------------;
-
-
- Any processes with a date and time that is already past will be
- updated until their date and time are in the future. This is
- done only when process begins execution.
-
- The option "-t" can be specified with PROCESS to speed up the
- system clock for testing purposes. Many weeks of processes can
- be tested in a few minutes.
-
- The "-t" option is used in this way:
-
- process -t30
-
- In this case, the system clock will be advanced 30 minutes
- every five seconds. Other time intervals can also be
- specified, for example:
-
- process -t60
-
- would advance the system clock 60 minutes every 5 seconds.
-
- NOTE: In test mode, the system clock is advanced at a much
- higher rate than normal. PROCESS restores the date and time
- when it exits. However, if your system crashes, or if for
- some other reason PROCESS does not exit normally, you will
- have to set the clock back manually.
-
-
-
-
-
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 24 -
-
-
-
-
-
-
-
-
- FF (Find Files)
-
-
- Description
-
- FF lists all occurrences of a file, the directories they are found in,
- and some information about each occurrence.
-
- Command Format
-
- ff [d:]filename [-g] [-a]
- The filename is required. The filename may contain the
- wildcard characters '?' and '*'. Using '-g' tells FF to do
- a global search, which means that all drives on your system
- will be searched for files matching the pattern. Using '-a'
- tells FF to search any archive found for files matching the
- pattern. Archive types searched are ARC, ZIP, PKA, PAK, ZOO,
- and LBR. If the Read-only or Hidden attribute flag is set,
- the flag is displayed after the file.
-
- Examples
-
- ff *.c
-
- will display all the directories where any file having the extension .C
- is found, and each occurrence of file with that extension. A drive
- specifier may be specified to search a drive other than the current
- drive. Hidden files will be displayed, subdirectories will not.
-
- ff command.com -g
-
- will display each occurrence of COMMAND.COM on all disks on the
- system.
-
- ff command.com -g -a
-
- will display each occurrence of COMMAND.COM on all disks on the
- system, and will also display any COMMAND.COM files in any archives
- found.
-
-
-
-
-
-
-
-
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 25 -
-
-
-
-
-
-
-
-
- These are examples of what the output from FF looks like:
-
-
- B>ff *.com
-
- FF (Find Files) Version 2.00 (C) Copyright 1988,1990 by Don Branson
-
- B:\
- FCB.COM 7119 bytes Nov 8, 1989 22:02:54
- MKSCRN.COM 7889 bytes Jan 22, 1990 21:35:28
-
- B:\DABUTIL2
- FF.COM 14755 bytes Oct 2, 1990 07:31:16
- FILEMAN.COM 43208 bytes Sep 17, 1990 07:12:30
-
- B:\UTIL
- MKSCRN.COM 7925 bytes Jan 27, 1990 00:00:20
- FCB.COM 7119 bytes Nov 8, 1989 22:02:54
-
- 6 files found.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 26 -
-
-
-
-
-
-
-
-
- C>ff a:*.* -a
-
- FF (Find Files) Version 2.00 (C) Copyright 1988, 1990 by Don Branson
-
- Archives will be searched.
-
-
- A:\
- FIDO12R.LZH 66164 bytes Jun 13, 1990 18:52:28
- PCUTIL.LBR 5888 bytes Jun 13, 1990 18:48:36
- RANDOM.ARC 4480 bytes May 9, 1989 20:58:34
- TEST.PAK 1597 bytes Jun 13, 1990 19:55:10
- TOZIP51.ZIP 18922 bytes Jun 13, 1990 18:49:22
- UGUIDE.ZOO 167155 bytes Jun 13, 1990 19:14:18
- WHEREIS.LBR 8192 bytes Jun 13, 1990 18:48:44
- RANDOM.ARC
- -RANDOM.DOC 2440 bytes Mar 12, 1989 17:05:38
- -RANDOM.FOR 5226 bytes Mar 12, 1989 17:05:52
- TEST.PAK
- -MAKEFILE.MF 38 bytes Oct 3, 1989 13:48:30
- PCUTIL.LBR
- -PCUTIL.COM 0, 1980 0:00:00
- -PCUTIL.DOC 0, 1980 0:00:00
- WHEREIS.LBR
- -WHEREIS.COM 0, 1980 0:00:00
- -WHEREIS.AQM 0, 1980 0:00:00
- FIDO12R.LZH
- -12R.EXE 13632 bytes Nov 2, 1989 13:52:58
- -EDIT.HLP 2707 bytes Nov 7, 1989 14:46:26
- -ERRATA.PRN 56877 bytes Nov 7, 1989 16:39:20
- -FILEREQ.INI 1534 bytes Apr 20, 1989 0:58:40
- -MAIN.HLP 4795 bytes Nov 16, 1988 13:42:16
- -MAKELIST.EXE 24512 bytes Nov 3, 1989 21:49:56
- -MESSAGE.HLP 6187 bytes Nov 2, 1989 14:50:28
- -MSGFILE.HLP 733 bytes Nov 7, 1989 14:47:02
- -POLICY.PRN 3229 bytes Aug 11, 1989 1:31:24
- -SET-FIDO.EXE 33008 bytes Nov 16, 1989 14:11:42
- UGUIDE.ZOO
- -uguide.n 51469 bytes Jun 8, 1989 13:40:20
- -uguide.ps 280988 bytes Jun 8, 1989 14:31:40
- -uguide.prn 63951 bytes Jun 9, 1989 10:01:28
- TOZIP51.ZIP
- -WHATSNEW.TXT 677 bytes Sep 16, 1989 23:40:28
- -TOZIP.EXE 29152 bytes Sep 16, 1989 23:15:12
- -TOZIP51.DOC 3101 bytes Sep 16, 1989 23:59:32
-
- 30 files found.
-
-
-
-
- DABUTIL Version 2.0 Documentation
- - Page 27 -
-