home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 29 Fixes_o / 29-Fixes_o.zip / ls203_.zip / IP6030B1.DSK / unc.dsk / FTCOPY.CMD < prev    next >
OS/2 REXX Batch file  |  1993-01-15  |  2KB  |  63 lines

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