home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1996 July / VPR9607B.BIN / ibm_os / sx63004 / sx63004s.3 / SYMINST.CMD < prev    next >
OS/2 REXX Batch file  |  1996-05-01  |  770b  |  32 lines

  1. @echo off
  2. setlocal
  3. if not '%1'=='/d' goto sym_skip1
  4. set csd_symopt=%1
  5. :sym_skip1
  6. if '%CSD_SOURCE%'=='' goto check
  7. set t=%CSD_TARGET%
  8. set s=%CSD_SOURCE%
  9. For %%v In (ChgAttr UnPack2 Erase Copy) Do Set %%v=%%v
  10. set STDOUT=NUL
  11. set STDERR=NUL
  12. :start
  13. echo -------------------------------------  1>%STDOUT% 2>%STDERR%
  14. %copy%    %s%\UNPACK2.EXE  %t%\             1>%STDOUT% 2>%STDERR%
  15. %unpack2% %s%\symtools     %t%\ /P          1>%STDOUT% 2>%STDERR%
  16. %t%
  17. if not '%csd_boot%'=='A:' goto skip_csfinit
  18.    cd \os2\dll
  19.    csfinit
  20.    cd \
  21. :skip_csfinit
  22. %t%\syminst2.cmd
  23. goto end
  24.  
  25. :check
  26. if not '%csd_symopt%'=='' goto sym_skip2
  27.    call csdinst @SYMINST.DAT  /b:SYMINST.CMD /f
  28.    goto end
  29. :sym_skip2
  30.    call csdinst @SYMRESET.DAT  /b:SYMINST.CMD /f
  31. :end
  32.