home *** CD-ROM | disk | FTP | other *** search
/ Chip: MS Office Professional / Chip-Special-Microsoft.bin / dckit / makeexe.bat < prev    next >
DOS Batch File  |  1996-04-15  |  974b  |  34 lines

  1. Rem **************************************************************
  2. Rem makeexe.bat
  3. Rem Copyright (C) Microsoft Corp. 1996
  4. Rem This batch file does the following :
  5. Rem (1) calls diamond.exe to build a compressed archive file (disk1\1.cab)
  6. Rem     from list of files in cabinet.ddf
  7. Rem (2) concatenates unpack.exe with the .cab file to create the named
  8. Rem     self-extracting .exe 
  9. Rem (3) deletes .cab file
  10. Rem **************************************************************
  11.  
  12. if NOT exist unpack.exe goto :error3
  13.  
  14. Rem Make cabinet from ddf. --------------------------------
  15. diamond /V3 /F cabinet.ddf
  16. if NOT exist disk1\1.cab goto :error4
  17. del *.rpt
  18. del *.inf
  19.  
  20. Rem create self extracting exe from cabinet---------------
  21. Rem change selfext.exe to desired path and filename
  22. copy /B unpack.exe + disk1\1.cab selfext.exe
  23. del disk1\1.cab
  24. rmdir disk1
  25. goto :out
  26.  
  27. :error3
  28. echo unpack.exe not found
  29.  
  30. :error4
  31. echo disk1\1.cab could not be created
  32.  
  33. :out
  34.