CDU 0.6.059 Mar 12 2001 CDU COMMAND-LINE Usage: CDU [|]...[|] WORDS: ADD ALL or EVERYTHING ARCHIVE, COMPRESS, COMPACT or GZIP AUTOEND, FINDEND or SEEKEND BADSCAN BEEP, SOUND, SOUNDS or NOISE BUFSIZ BYTE, CHAR or VALUE CLS or CLEAR COMPARE or MATCH CONFIRM COPY, BACKUP or RESTORE DEBUG DEFINE or MACRO DELAY1 DELAY2 DELETE, DEL, REMOVE or KILL DETAIL DISK or DRIVE DOT or . DUMP, PRINT or LIST END or FINISH EXIT, BYE or QUIT FILE FLUSH FOR or STRING FWRITE HELP HWRITE I13, INT13 or INT_13 I13EX, INT13EX, INT_13EX or INT_13_EX IDENTIFY IFACE or INTERFACE INCLUDE or GET INFO INTERACTIVE NAME or ASSIGN OFF, DISABLE, INHIBIT, FALSE or NO ON, ENABLE, TRUE or YES ONERROR, ON_ERROR, ONERR or ON_ERR PROBE or ACQUIRE RANGE or OFFSET REMIND or NAG RETRIES or RETRY SAY, MESSAGE or TEXT SCHAR or SPECIAL SEARCH or FIND SIZING SOURCE, FROM, WITH or IN START or BEGIN STATUS or STATE STDKB or STDIO TARGET or TO TRACE VCHAR or ENVAR VERBOSE, WAFFLE or BLAH VINFO VOLUME or VOL WRITE GRAMMAR: < A string representing a user-given drive name > < A file name acceptable to the operating system > < A unique string representing a disk drive's identity > < A string representing a user-specified message > < A pattern to search for > < A string representing a (possibly wild-carded) CDU function name > < A string representing a macro name > < A string representing the text of a macro > '' 0x[]...[] []...[]b []...[] []...[]h []...[]o + - [][] FD HD : []:[] [] [] [] [] [] [] @ [] [] [] [] [] [] [] [] [] [] [] [] [] [] CONSTANTS: The default response file extension is '.cdu'. The system console special file name is 'CON'. Response files are cited by prepending a '@' to the file name. Special characters are embedded by using the character '\'. Macros and environment variables should be bracketed by '%'. The maximum depth to which you can nest response files is 10. The character used to comment a line in a response file is ';'. You can have a maximum of 512 characters in a response file line. The maximum length of a drive name is 10 characters. The standard IBM PC sector length is 512 bytes. The byte used as a 'no data' indicator is 0xEE. When looking for IDE drives, the range searched is 0/0 to 1/1. The maximum number of IDE drives supported is 4. The maximum number of floppy drives supported is 2. The maximum length of a reserved word is 20 characters. The maximum number of word synonyms is 10. The name string that means 'all objects' is '*'. RANGES: When entering a range, *one* of the sector numbers can be expressed in a manner relative to the *other* sector number. In this case, the sector number is treated as a *length* and, just before the command is exeucted, the length is added to the absolute sector number to obtain the other absolute sector number. The fact that the relative item is a *length* is taken into account. So, for example, the first ten sectors of a disk can be expressed as: RANGE START:+10 Note that you do *not* have to take into account the 'minus one' effect and use 'START:+9' instead. So, for example, if one wanted to copy the contents of file 'z.img' onto the last *six* sectors of the first floppy drive, one could use: CDU FWRITE ON COPY FILE Z.IMG TO DISK FD0 RANGE -6:END Omitted items are consider as if one had cited the corresponding extreme end of the stream. So, for example, ':+100' would refer to the first one hundred sectors of a stream and '-100:' would refer to the last one hundred sectors. This mechanism will, therefore, treat a single ':' as if the range hadn't been specified at all. EXAMPLES: CDU COPY [FROM] DISK HD0 TO FILE BACKUP.IMG CDU COMPARE [SOURCE] DISK HD0 WITH FILE BACKUP.IMG CDU VERBOSE ON DETAIL ON INFO CDU DELETE HD0 @NAMES VINFO CDU DELETE ALL ADD HD0 ADD HD1 INFO CDU BACKUP [FROM] DRIVE HEX TO GZIP C:\Z\TEMP.GZ CDU HWRITE ENABLE COPY [FROM] ARCHIVE C:\Z\TEMP.GZ TO DRIVE HEX CDU HWRITE ON RESTORE [TO] DRIVE HEX FROM ARCHIVE C:\Z\TEMP.GZ CDU BACKUP [FROM] DISK GLOD TO DISK BIGIRON OFFSET 10000 CDU RESTORE [TO] VOL D: FROM DRIVE HEX RANGE 1000:+1000 CDU COMPARE DISK HD0 RANGE 0X200:+0X10 WITH DISK HD1 RANGE 0X100:+0X10 CDU COMPARE [SOURCE] DISK GLOD WITH DISK BIGIRON CDU SEARCH [IN] VOLUME C: FOR "FAT16" NOTES: (a) Elements in square brackets may be omitted. In the above examples, the indicated optional words are *implied* if they are missing. (b) If the optional Boolean word after a switch key word is missing, the relevant switch is *toggled*.