home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / patches / tcpip121 / x25 / x25csd.cmd < prev    next >
OS/2 REXX Batch file  |  1992-09-14  |  891b  |  34 lines

  1. /* Install X25 CSD files */
  2.  
  3. /* Check where to install (from SET ETC statement) */
  4. ENV = 'OS2ENVIRONMENT'
  5. ETC = VALUE('ETC',,ENV)
  6. if ETC = '' then
  7.     do
  8.     say ""
  9.     say "WARNING!"
  10.     say "You do NOT have the environment variable ETC defined!"
  11.     say "You should have already installed the OS/2 TCP/IP 1.2.1 refresh"
  12.     say "CSD installation will not continue."
  13.     say ""
  14.     exit 1
  15.     end
  16.  
  17. BASE=filespec("drive",ETC)||filespec("path",ETC)
  18. if substr(BASE, length(BASE), 1) = '\' then
  19.     BASE = substr(BASE, 1, length(BASE) - 1)
  20.  
  21.  
  22. /* REM BIN files */
  23.  
  24. attrib BASE'\syslevel.x25 -r'
  25. copy 'syslevel.x25' BASE'\syslevel.x25'
  26. attrib BASE'\syslevel.x25 +r'
  27. copy 'x25io.exe' BASE'\bin\x25io.exe'
  28. copy 'xiowait.exe' BASE'\bin\xiowait.exe'
  29.  
  30. /* Copy the configuration files */
  31.  
  32. copy 'x25es1.cfg' BASE'\etc\x25es1.cfg'
  33. copy 'x25es2.cfg' BASE'\etc\x25es2.cfg'
  34.