home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast.iso / pcmag / vol8n20.zip / DEBUGSCR.DOC < prev    next >
Text File  |  1989-10-18  |  2KB  |  51 lines

  1. DEBUGSCR
  2. Command
  3.  
  4. Michael Mefford  November 28, 1989 (Utilities)
  5.  
  6.  
  7. Purpose: To convert binary files into ordinary ASCII text files, which can be
  8.          transmitted over MCI Mail and similar services, and reconverted to the
  9.          ir original binary form using the DOS DEBUG command.
  10.  
  11. Format:    DEBUGSCR filespec [/N]
  12.     DEBUG < filename
  13.  
  14. Remarks: Use the first command shown above to create a DEBUGSCR script file 
  15.          from a binary file (.COM, .EXE, .WK1, etc.) named in the filespec. 
  16.          An alternate drive and/or path may be specified.  The script file is
  17.          automatically given an .SCR extension and is placed in the same 
  18.          directory as the original file.  The script file consists of an ASCII
  19.          hex representation of the original binary values, together with the 
  20.          commands DEBUG needs to recreate the original file.  The script file 
  21.          ends with appropriate instructions to the recipient.  These 
  22.          instructions are ignored by DEBUG and can be suppressed altogether 
  23.          by using the optional /N switch.
  24.  
  25.      The .SCR file can be edited with a word processor before transmission
  26.          to append additional information, such as how to use the utility being
  27.          sent.  The .SCR file must then be resaved in pure ASCII form.  
  28.          Similarly, before he reconverts the .SCR file with DEBUG.COM, the 
  29.          recipient must edit out any header prefixed to the file by the 
  30.          communications service (for example, the TO: heading added by MCI). 
  31.          After resaving in ASCII, the recipient simply uses the second command
  32.          line shown above, supplying the desired final filename.
  33.  
  34.          DEBUGSCR.BAS will automatically create DEBUGSCR.COM when run once in 
  35.          BASIC.  To assemble the program from its source code listing requires 
  36.          use of a macro assembler (IBM or Microsoft, Version 2 or later) and the
  37.          following commands:
  38.  
  39.         MASM DEBUGSCR;
  40.     LINK DEBUGSCR;
  41.     EXE2BIN DEBUGSCR DEBUGSCR.COM;
  42.  
  43. Note:   DEBUGSCR will not work with files over 60K.  
  44.  
  45.     DEBUG.COM will not write a filename with an .EXE extension to disk.  
  46.         DEBUGSCR therefore strips this extension and appends a warning to the 
  47.         recipient that after using DEBUG he must rename the file to include its
  48.         proper .EXE extension.  
  49.  
  50.     
  51.