home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / ibm / pc / misc / 15705 < prev    next >
Encoding:
Internet Message Format  |  1992-12-11  |  4.6 KB

  1. From: Sheldon.Sawatzky@f886.n2000.z12.misgate.gmi.org (Sheldon Sawatzky)
  2. Sender: uucp@misgate.gmi.org
  3. Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!col.hp.com!gmi!misgate!uucp
  4. Newsgroups: comp.sys.ibm.pc.misc
  5. Subject: Compress Huge File 1/3
  6. Message-ID: <724113082.F00004@misgate.gmi.org>
  7. Date: Thu, 10 Dec 1992 13:49:02 -0700
  8. Lines: 104
  9.  
  10. HM>Does anyone know how to use compression like pkzip, arj, ahl, etc
  11. HM>to compress a huge file/directories (I know this part) and
  12. HM>then save them to disk?
  13.  
  14. As others have already suggested, follow the instructions for using
  15. ARJ in this manner.  Another suggestion for using PKZIP was posted
  16. in this conference.  It is as follows:
  17.  
  18.    From: H. D. Knoble
  19.      To: All
  20.    Area: IBM.PC.MISC
  21.  
  22. As it turns out, DOS (4.0 and 5.0 at least) BACKUP command tries to
  23. compress a bit the files it's backing up. If, however, the file is
  24. already highly compressed, e.g., a PKZIP (by Phil Katz) file, then
  25. DOS BACKUP will not change one bit in the file when it creates
  26. BACKUP.001, BACKUP.002, ... , except for splitting across diskette
  27. if necessary. Thus if one uses PKZIP indexed backup (by providing
  28. PKZIP with a file that contains only those filespecs that you wish
  29. to PKZIP) and PKZIP creates a ZIP file that BACKUP will backup to
  30. one diskette, then the file BACKUP.001 would in fact be also a ZIP
  31. file; e.g., PKUNZIP -v A:\BACKUP.001 | MORE  will display its
  32. contents.
  33.  
  34. Because so many people recently seem to be suffering the loss of
  35. personal data (versus re-installable files of a package they may use
  36. to create that personal data) I offer a simple code and
  37. documentation here, say ZBACKUP.BAT and ZBACKUP.HLP, to help some of
  38. you address this kind of painful experience.  Unlike PSU mainframe
  39. computers, each person using a microcomputer is responsible for the
  40. integrity of their own personal files.  Given an ASCII index file of
  41. DOS filespecs, ZBACKUP.INX, that you create, the actual code
  42. (including taking a snap-shot of DIR C:\*.*) amounts to four four
  43. DOS commands like (assuming enough space on C: to hold the zip
  44. file):
  45.  
  46. DIR C:\ > C:\C-Disk.DIR
  47. PKZIP -a -P -J -w -z C:\ZBACKUP.ZIP C:\C-Disk.DIR @C:\ZBACKUP.INX
  48. BACKUP C:\ZBACKUP.ZIP A:
  49. ERASE C:\C-DISK.DIR
  50.  
  51. Including documentation, some integrity checks, etc.  the files, these
  52. four commands are implemented in ZBACKUP.BAT which is documented in
  53. ZBACKUP.HLP; an example of ZBACKUP.INX (the index file unique to each
  54. unique person's "critical" files) also follows.  Each file appears below
  55. and is separated by a line of dashes (---'s).  From PSUVM you can save
  56. this Netnews file that you are now reading on your CMS E-Disk by moving
  57. the cursor to the command line and issuing: SAVE ZBACKUP MEMO E  from where
  58. you can then edit and download.  The binary file ZBACKUP.ZIP containing
  59. these three files (4100 bytes long) also resides on the PSUVM Kermit
  60. Product Disk (which can be accessed by issuing the command: PRODUCT KERMIT
  61. downloaded and unzipped from there).
  62.  
  63.    --------------------------ZBACKUP.BAT follows-------------------------
  64. @Echo Off
  65. REM ***********************************************************************
  66. REM  ROUTINE:   ZBACKUP.BAT
  67. REM  PURPOSE:   PKZIP Backup all files specified in file C:\ZBACKUP.INX to
  68. REM             C:\ZBACKUP.ZIP, then to 1.44M diskette using DOS BACKUP.
  69. REM  PACKAGE:   Backup of Personal PC files
  70. REM  CALLS:     PKZIP and DOS BACKUP command.
  71. REM  FILES NEEDED: ZBACKUP.INX, ZBACKUP.HLP
  72. REM  CALLED BY: ZBACKUP    or   ZBACKUP ?  to display Help.
  73. REM  MODIFY:    A:, the floppy drive, may be changed to any desired drive.
  74. REM  AUTHOR:    H. D. Knoble, HDK@PSUVM, 02/13/92
  75. REM
  76. ************************************************************************
  77. if "%1" == "?" GoTo Help
  78. if "%1" == "" GoTo Next
  79. Echo .
  80. Echo $$Error: Invalid Syntax: %0 %1 %2 %3 %4 %5 %6 %7 %8 %9
  81. Echo .
  82. GoTo Done
  83. :Next
  84. if exist C:\ZBACKUP.INX GoTo BackThem
  85. Echo .
  86. Echo $$Error: C:\ZBACKUP.INX not found.
  87. Echo .
  88. GoTo Done
  89.  
  90. :BackThem
  91. REM a(add), P(include pathnames), J(don't mask hidden/system/ronly files)
  92. REM w(include hidden/system/ronly files), z(ask for zip comment).
  93. DIR C:\ > C:\C-Disk.DIR
  94. PKZIP -a -P -J -w -z C:\ZBACKUP.ZIP C:\C-Disk.DIR @C:\ZBACKUP.INX
  95. if errorlevel 1 GoTo WrapUp
  96. if not exist C:\ZBACKUP.ZIP Goto WrapUp
  97. Echo .
  98. Echo ZBACKUP: To bypass DOS BACKUP press Ctrl-Break at its prompt.
  99. Echo          DOS BACKUP beginning now...
  100. BACKUP C:\ZBACKUP.ZIP A:
  101. if errorlevel 1 GoTo Done
  102. Echo .
  103. Echo You may now ERASE C:\ZBACKUP.ZIP after verifying C:\ZBACKUP.ZIP
  104. is backed up.
  105. Echo To verify this: issue DIR A:BACKUP.* for each diskette BACKUP
  106.     called for;
  107.  
  108. --CONTINUED...
  109.  
  110.  * OLX 2.1 TD * May peace and joy be yours this holiday season!
  111.  
  112.  * Origin: Taiwan Missionary BBS (12:2000/886.0)
  113.  
  114.