home *** CD-ROM | disk | FTP | other *** search
- /* FTCOPY.CMD */
- "echo off"
- parse upper arg Help .
- if Help = "?" then signal syntax
-
- signal messages
-
- start:
- "cls"
- say " "
- say " ╔═════════════════════════════════════════════╗ "
- say " ║ IBM OS/2 LAN Advanced Server ║ "
- say " ║ Service Pack ║ "
- say " ╚═════════════════════════════════════════════╝ "
- say " "
- say " "
- say " "
-
- /* Specify SHOW to turnoff the hidden file attribute */
- "FTATTRIB SHOW C:\FTCFG.SYS "
- if RC \= 0 then
- do
- say msg.1
- signal syntax
- end
-
- /* Copy FTCFG.SYS from C: drive to bootable diskette in A: drive */
- "COPY C:\FTCFG.SYS A: "
- if RC \= 0 then
- do
- say msg.2
- say msg.3
- signal syntax
- end
-
- /* Specify HIDE to set file FTCFG.SYS as a hidden file */
- "FTATTRIB HIDE C:\FTCFG.SYS "
- if RC \= 0 then
- do
- say msg.4
- signal syntax
- end
-
- Done:
- say " "
- say " ╔═════════════════════════════════════════════╗ "
- say " ║ FTCOPY.CMD Copy FTCFG.SYS file Complete. ║ "
- say " ╚═════════════════════════════════════════════╝ "
- say " "
- signal End
-
- /* Help panel */
- syntax:
- say " "
- say " "
- say " If you did not have the Fault Tolerance function installed "
- say " in your LS Advanced Server, then you should not run this "
- say " FTCOPY.CMD command file, because you do not have the "
- say " Fault Tolerance related file FTCFG.SYS HIDDEN on your C: drive. "
- say " "
- say " "
- say " "
- signal End
-
- messages:
- msg.1= " The hidden file attribute did not turn off properly. "
- msg.2= " File FTCFG.SYS is not on the C: drive "
- msg.3= " File FTCFG.SYS did not copy to the bootable diskette."
- msg.4= " File C:\FTCFG.SYS did not set back as a hidden file properly "
- signal start
-
- End:
-