home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / SDE_300.ZIP / ZIP.XM! < prev   
Text File  |  1990-12-08  |  833b  |  37 lines

  1.  
  2. @Comment
  3.   {
  4.   PKZIP/PKUNZIP external macro for SDE. Execute using
  5.   an internal macro which reads: @External{ZIP.XM}
  6.   }
  7.  
  8. @QuitIf{{Hilited{n}}{No files in directory}}
  9. @Set{{hn}{@Hilited{n}}}
  10.  
  11. @Prompt{PKZIP/PKUNZIP}
  12.  
  13. @Menu
  14.   {
  15.   {Add tagged to a ZIP file}
  16.     {
  17.     @QuitIf{{@Tagged{}}{No tagged files}}
  18.     @Prompt{ZIP name {no extension}}
  19.     @Set{{zip}{@Input{@Hilited{n}}}}
  20.     @QuitIf{{@Val{zip}}{No file name given}}
  21.     pkzip2 -a @Val{zip}.ZIP @Tagged{}
  22.     }
  23.   {Extract files from @Val{hn}.ZIP}
  24.     {pkunzip2 @Val{hn}.ZIP @Options{dir}}
  25.   {View contents of @Val{hn}.ZIP}
  26.     {pkunzip2 -v @Val{hn}.ZIP}
  27.   {Create @Val{hn}.EXE from @Val{hn}.ZIP}
  28.     {zip2exe @Val{hn}.ZIP}
  29.   {Help on PKZIP}
  30.     {pkzip2 /h}
  31.   {PKUNZIP Help}
  32.     {pkunzip2 /h}
  33.   }
  34.  
  35. @Options{msg wipe fore:green+ back:black}
  36.  
  37.