home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 29 Fixes_o / 29-Fixes_o.zip / ls8152b1.dsk / FTCOPY.CMD < prev    next >
OS/2 REXX Batch file  |  1995-11-21  |  3KB  |  74 lines

  1. /* FTCOPY.CMD */
  2. "echo off"
  3. parse upper arg Help .
  4. if Help = "?" then signal syntax
  5.  
  6. signal messages
  7.  
  8. start:
  9. "cls"
  10. say "                                                          "
  11. say "         ╔═════════════════════════════════════════════╗  "
  12. say "         ║      IBM OS/2 LAN Advanced Server           ║  "
  13. say "         ║                Service Pack                 ║  "
  14. say "         ╚═════════════════════════════════════════════╝  "
  15. say "                                                          "
  16. say "                                                          "
  17. say "                                                          "
  18.  
  19. /* Specify SHOW to turnoff the hidden file attribute */
  20. "FTATTRIB SHOW C:\FTCFG.SYS  "
  21. if RC \= 0 then
  22.    do
  23.    say  msg.1
  24.    signal syntax
  25.    end
  26.  
  27. /* Copy FTCFG.SYS from C: drive to bootable diskette in A: drive */
  28. "COPY C:\FTCFG.SYS A: "
  29. if RC \= 0 then
  30.    do
  31.    say  msg.2
  32.    say  msg.3
  33.    signal syntax
  34.    end
  35.  
  36. /* Specify HIDE to set file FTCFG.SYS as a hidden file */
  37. "FTATTRIB HIDE C:\FTCFG.SYS  "
  38. if RC \= 0 then
  39.    do
  40.    say  msg.4
  41.    signal syntax
  42.    end
  43.  
  44. Done:
  45. say "                                                          "
  46. say "         ╔═════════════════════════════════════════════╗  "
  47. say "         ║  FTCOPY.CMD  Copy FTCFG.SYS file Complete.  ║  "
  48. say "         ╚═════════════════════════════════════════════╝  "
  49. say "                                                          "
  50. signal End
  51.  
  52. /* Help panel */
  53. syntax:
  54. say "                                                                       "
  55. say "                                                                       "
  56. say "  If you did not have the Fault Tolerance function installed           "
  57. say "  in your LS Advanced Server, then you should not run this             "
  58. say "  FTCOPY.CMD command file, because you do not have the                 "
  59. say "  Fault Tolerance related file FTCFG.SYS HIDDEN on your C: drive.      "
  60. say "                                                                       "
  61. say "                                                                       "
  62. say "                                                                       "
  63. signal End
  64.  
  65. messages:
  66. msg.1= " The hidden file attribute did not turn off properly. "
  67. msg.2= " File FTCFG.SYS is not on the C: drive "
  68. msg.3= " File FTCFG.SYS did not copy to the bootable diskette."
  69. msg.4= " File C:\FTCFG.SYS did not set back as a hidden file properly "
  70. signal start
  71.  
  72. End:
  73.  
  74.