home *** CD-ROM | disk | FTP | other *** search
- /*************************************************************
- * *
- * Program DCOPY - physical sector to sector copy *
- * Copyright (c) 1986 Joerg Genius, Munich, West-Germany *
- * *
- *************************************************************/
-
- #include <stdio.h>
-
- char *text[] = { "DCOPY %s Copyright (c) 1986-91 Joerg K. Genius, Munich\n",
- " Revision %s\n\n",
- "\007\nERROR-- Not enough memory - DCOPY aborted\n",
- "\007ERROR-- Drives must be different - DCOPY aborted\n",
- "\007ERROR-- Drives must be between A and %c: - DCOPY aborted\n",
- "\007ERROR-- Can't open '%s' for writing - DCOPY aborted\n",
- "\007ERROR-- Can't open '%s' for input - DCOPY aborted\n",
- "\007ERROR-- Invalid drive %c: - DCOPY aborted\n",
- "Disk type is %s.\n",
- "Copying %u blocks from drive %c: to file '%s' . . . ",
- "\007\n\nERROR-- Message #%d (read): '%s' - DCOPY aborted\n",
- "\007\n\nERROR-- Can't write to .IMG file - DCOPY aborted\n",
- "\r\007Done. Copied %u blocks from drive %c: to file '%s' ! \n\n",
- "Compression saved %ld bytes.\n\n",
- "\007ERROR-- Source and destination drive must be of same type - DCOPY aborted\n",
- "Copying %u blocks from drive %c: to %c: . . .",
- "\007\n\nERROR-- Message #%d (write): '%s' - DCOPY aborted\n",
- "\007\n\nERROR-- Message #%d (verify): '%s' - DCOPY aborted\n",
- "\007\n\nERROR-- Verification wrong - DCOPY aborted\n",
- "\r\007Done. Copied %u blocks from drive %c: to %c: ! \n",
- "\007ERROR-- Incompatible number of blocks - DCOPY aborted\n",
- "\007\n\nERROR-- Can't read .IMG file - DCOPY aborted\n",
- "Copying %u blocks from file '%s' to drive %c: . . . ",
- "\r\007Done. Copied %u blocks from file '%s' to drive %c: ! \n\n " ,
- "Verifying %u blocks from file '%s' with drive %c: . . .",
- "\r\007Done. Verified %u blocks from file '%s' with drive %c:! \n\n",
- "Verifying %u blocks from drive %c: with drive %c: . . .",
- "\r\007Done. Verified %u blocks from drive %c: with drive %c:! \n\n",
- "\r\007ERROR-- Drive %c: has an unsupported format - DCOPY aborted\n" };
-
-
- char *d_types[] = { "Double Sided, High Density, 1.2 MByte",
- "Single Sided, Quad Density, RX50, 400 kByte",
- "Double Sided, Double Density, 360 kByte",
- "Double Sided, Double Density, 320 kByte",
- "Single Sided, Double Density, 180 kByte",
- "Single Sided, Double Density, 160 kByte",
- "Double Sides, Double Density, 3.5 Inch, 720 kByte",
- "Double Sides, High Density, 3.5 Inch, 1.44 MByte" };
-
- char *err_text[] = { "Disk write protected",
- "Unknown unit",
- "Drive not ready",
- "Unknown command",
- "Data error",
- "Bad request structure length",
- "Seek error",
- "Unknown media type",
- "Sector not found",
- "Printer out of paper",
- "Write fault",
- "Read fault",
- "General failure" } ;
-
- char *disk_buffer;
- unsigned int MAX_DRV;
- unsigned int blk_p_buffer;
- int disk_type;
-