............................................................................... .Automenu DOS Menu Example .By Marshall W. Magee .Updated last on 07/09/90 ............................................................................... %AUTOMENU(R) Simple DOS Menu ................................................. *Perform DOS Check Disk (CHKDSK) ?Print information about disk >Enter Drive you wish to do a Check Disk of: > For Example: Enter 'A:' to check drive A: > < > >Now Performing a CHECK DISK of Drive -> %1 > > =CHKDSK %1 ................................................. *Print Directory Listing to Screen ?List filenames on Disk to the Console >Select Drive you wish to see the Directory of: >Select Directory command option: > > /W This option prints filenames across screen > /P This option will pause when screen fills > /W/P This option is a combination of the above two options > >Now Listing Files on Drive -> %1 With Option -> %2 =DIR %1%2 ................................................. *Execute ANY Valid DOS Command >Enter any DOS Command and Press Return (ESC to return to Menu) < >........... Now Executing >> %1 > > > =%1 ................................................. *Select a DOS Command ?Pick From A List Of DOS Commands to be Executed >Choose any of the DOS Commands below and Press Return (ESC to return to Menu) > >.............Now Executing >> %1 =%1 ................................................. *Return to Main Menu ?Will Exit to Main Menu @automenu.MDF ................................................. %AUTOMENU(R) Common DOS Functions ................................................. *Copy a file to another disk drive ?Copy a file >Enter FILENAME to be copied (Press ESC to Quit) > For Example: TEST.DAT > C:SAM.* < >Select which DRIVE to copy it to: >Now copying file %1 TO %2 -COPY %1 %2 ................................................. *Move a File to Another Disk Drive ?Move One or More Files >This option will copy files to a new location and erase old files > > > >Enter filespec to be moved (Press ESC to Quit) > For Example: TEST.DAT or C:TEST.DAT > or: *.DOC or B:*.TXT > < >Select which DRIVE to move TO: >Now moving file(s) %1 TO %2 !COPY %1 %2 > NUL !DEL %1 ................................................. *Delete a File ?Erase a file (Password = "OK") ^OK >Enter Filename to be ERASED (Press ESC to Quit) > For Example: TEST.DAT or C:TEST.DAT > < +ERASE %1 +ECHO FILE %1 Has Been Erased - To Return to Menu, +PAUSE +AUTO DOS.MDF ................................................. *Rename a File ?Change the Name of a File >Enter OLD FILENAME to be Renamed (Press ESC to Quit) > For Example: TEST.DAT or D:TEST.DAT > < >Enter NEW Filename - Without Drive specified. > < +ECHO OFF +CLS +REN %1 %2 > NUL +ECHO Old File %1 Renamed to %2 +ECHO To Return to Menu, +PAUSE +AUTO DOS.MDF ................................................. *Format a Floppy Diskette in Drive B: P/W = "BOB" ?Format disk in Drive B: using "FORMAT B:" ^BOB .FORMAT B: =ECHO FORMAT Example is disabled, Modify DOS.MDF to Activate ................................................. *Format Boot Disk in Drive B: Password = "BOB" ?Format Disk in Drive B: Using "FORMAT B:/S/V" ^BOB .FORMAT B:/S/V =ECHO FORMAT Example is disabled, Modify DOS.MDF to Activate ................................................. *Return to Main Menu ?Will Exit to the Main Menu @automenu.MDF ................................................. %AUTOMENU(R) DOS Backup Menu ................................................. *Format A Diskette in Drive A: ?Prepare a Disk in Drive A: =ECHO FORMAT Example is disabled, Modify DOS.MDF to Activate .FORMAT A: ................................................. *Total Backup of Drive C: ?Perform a Complete Backup of ALL Files on Drive C: =ECHO Selection Disabled - EDIT DOS.MDF To Use This Function .BACKUP C:\ A: /S /A .The above command will backup all files on the C: Drive .to the floppy on A:, and will NOT erase any existing files .on A:. .AUTO ................................................. *Update Backup for Files Changed on Drive C: ?Restores Files =ECHO Selection Disabled - Edit DOS.MDF To Use This Function .BACKUP C:\ A:/S/M .AUTO ................................................. *Return to Main Menu ?Will Exit to Main Menu @automenu.MDF ................................................. #END OF DOS.MDF