verify off echo off echo * echo * TOPIC Installation program echo * rem if "%1" == "" goto error if "%2" == "" goto error if "%3" == "" goto error if "%4" == "" goto error if "%5" == "" goto correct goto error :correct if exist %1%2 goto exists echo * echo * Creating %1%2 as Topic swapping area. md %1%2 echo * Verifying machine configuration on %1%2 echo * copy %3%4\systst.exe %1%2 REM need to set current disk to %1 so that systst will check the proper disk %1 cd %2 systst if errorlevel 1 goto exit %3 cd %4 rem rem 1) system topic directory (recursively) rem echo * Transfering the Topic Database for Ailist. . . rem md %1%2\ailist >NUL md %1%2\ailist\cwtopics >NUL md %1%2\ailist\cwtopics\sysind >NUL md %1%2\ailist\cwtopics\systop >NUL copy %3%4\ailist\cwtopics %1%2\ailist\cwtopics >NUL copy %3%4\ailist\cwtopics\sysind %1%2\ailist\cwtopics\sysind >NUL copy %3%4\ailist\cwtopics\systop %1%2\ailist\cwtopics\systop >NUL rem echo * Transfering the Topic Database for Computer World. . . rem md %1%2\cw >NUL md %1%2\cw\topics >NUL md %1%2\cw\topics\sysind >NUL md %1%2\cw\topics\systop >NUL copy %3%4\cw\topics %1%2\cw\topics >NUL copy %3%4\cw\topics\sysind %1%2\cw\topics\sysind >NUL copy %3%4\cw\topics\systop %1%2\cw\topics\systop >NUL rem rem 2) doc DB from each partition rem echo * Transfering Document Database Swapping files for Ailist . . rem md %1%2\ailist\ailist1 >NUL md %1%2\ailist\ailist2 >NUL md %1%2\ailist\ailist3 >NUL md %1%2\ailist\ailist4 >NUL md %1%2\ailist\ailist5 >NUL echo * Transfering swapping files for Ailist partition 1. . . copy %3%4\ailist\ailist1\ailist1._* %1%2\ailist\ailist1 >NUL copy %3%4\ailist\ailist1\ailist1.dd* %1%2\ailist\ailist1 >NUL echo off >> %1%2\ailist\ailist1\ailist1._da echo * Transfering swapping files for Ailist partition 2. . . copy %3%4\ailist\ailist2\ailist2._* %1%2\ailist\ailist2 >NUL copy %3%4\ailist\ailist2\ailist2.dd* %1%2\ailist\ailist2 >NUL echo off >> %1%2\ailist\ailist2\ailist2._da echo * Transfering swapping files for Ailist partition 3. . . copy %3%4\ailist\ailist3\ailist3._* %1%2\ailist\ailist3 >NUL copy %3%4\ailist\ailist3\ailist3.dd* %1%2\ailist\ailist3 >NUL echo off >> %1%2\ailist\ailist3\ailist3._da echo * Transfering swapping files for Ailist partition 4. . . copy %3%4\ailist\ailist4\ailist4._* %1%2\ailist\ailist4 >NUL copy %3%4\ailist\ailist4\ailist4.dd* %1%2\ailist\ailist4 >NUL echo off >> %1%2\ailist\ailist4\ailist4._da echo * Transfering swapping files for Ailist partition 5. . . copy %3%4\ailist\ailist5\ailist5._* %1%2\ailist\ailist5 >NUL copy %3%4\ailist\ailist5\ailist5.dd* %1%2\ailist\ailist5 >NUL echo off >> %1%2\ailist\ailist5\ailist5._da rem echo * Transfering Document Database Swapping files for Computer World. . . rem md %1%2\cw\comtext0 >NUL md %1%2\cw\comtext1 >NUL md %1%2\cw\comtext2 >NUL md %1%2\cw\comtext3 >NUL md %1%2\cw\comtext4 >NUL md %1%2\cw\comtext5 >NUL md %1%2\cw\comtext6 >NUL echo * Transfering swapping files for Computer World partition 0. . . copy %3%4\cw\comtext0\comtext0._* %1%2\cw\comtext0 >NUL copy %3%4\cw\comtext0\comtext0.dd* %1%2\cw\comtext0 >NUL echo off >> %1%2\cw\comtext0\comtext0._da echo * Transfering swapping files for Computer World partition 1. . . copy %3%4\cw\comtext1\comtext1._* %1%2\cw\comtext1 >NUL copy %3%4\cw\comtext1\comtext1.dd* %1%2\cw\comtext1 >NUL echo off >> %1%2\cw\comtext1\comtext1._da echo * Transfering swapping files for Computer World partition 2. . . copy %3%4\cw\comtext2\comtext2._* %1%2\cw\comtext2 >NUL copy %3%4\cw\comtext2\comtext2.dd* %1%2\cw\comtext2 >NUL echo off >> %1%2\cw\comtext2\comtext2._da echo * Transfering swapping files for Computer World partition 3. . . copy %3%4\cw\comtext3\comtext3._* %1%2\cw\comtext3 >NUL copy %3%4\cw\comtext3\comtext3.dd* %1%2\cw\comtext3 >NUL echo off >> %1%2\cw\comtext3\comtext3._da echo * Transfering swapping files for Computer World partition 4. . . copy %3%4\cw\comtext4\comtext4._* %1%2\cw\comtext4 >NUL copy %3%4\cw\comtext4\comtext4.dd* %1%2\cw\comtext4 >NUL echo off >> %1%2\cw\comtext4\comtext4._da echo * Transfering swapping files for Computer World partition 5. . . copy %3%4\cw\comtext5\comtext5._* %1%2\cw\comtext5 >NUL copy %3%4\cw\comtext5\comtext5.dd* %1%2\cw\comtext5 >NUL echo off >> %1%2\cw\comtext5\comtext5._da echo * Transfering swapping files for Computer World partition 6. . . copy %3%4\cw\comtext6\comtext6._* %1%2\cw\comtext6 >NUL copy %3%4\cw\comtext6\comtext6.dd* %1%2\cw\comtext6 >NUL echo off >> %1%2\cw\comtext6\comtext6._da rem rem 3) style directory rem echo * Setting up Styles area for Ailist rem md %1%2\ailist\aistyle >NUL copy %3%4\ailist\aistyle %1%2\ailist\aistyle >NUL rem echo * Setting up Styles area for Computer World rem md %1%2\cw\comstyle >NUL copy %3%4\cw\comstyle %1%2\cw\comstyle >NUL rem rem 4) user directory (recursively) rem echo * Setting up user area for Ailist rem md %1%2\ailist\usr_data >NUL md %1%2\ailist\usr_data\cwtopics >NUL md %1%2\ailist\usr_data\cwtopics\usrind >NUL md %1%2\ailist\usr_data\cwtopics\usrtop >NUL copy %3%4\ailist\usr_data %1%2\ailist\usr_data >NUL copy %3%4\ailist\usr_data\cwtopics\usrind %1%2\ailist\usr_data\cwtopics\usrind >NUL copy %3%4\ailist\usr_data\cwtopics\usrtop %1%2\ailist\usr_data\cwtopics\usrtop >NUL rem echo * Setting up user area for Computer World rem md %1%2\cw\usr_data >NUL md %1%2\cw\usr_data\topics >NUL md %1%2\cw\usr_data\topics\usrind >NUL md %1%2\cw\usr_data\topics\usrtop >NUL copy %3%4\cw\usr_data %1%2\cw\usr_data >NUL copy %3%4\cw\usr_data\topics\usrind %1%2\cw\usr_data\topics\usrind >NUL copy %3%4\cw\usr_data\topics\usrtop %1%2\cw\usr_data\topics\usrtop >NUL rem rem 5) partition index rem echo * Setting up partition index for Ailist rem md %1%2\ailist\prtindex >NUL copy %3%4\ailist\prtindex %1%2\ailist\prtindex >NUL rem echo * Setting up partition index for Computer World rem md %1%2\cw\comprind >NUL copy %3%4\cw\comprind %1%2\cw\comprind >NUL rem rem echo * Now we need to ask some questions about you monitor so that Topic will echo * behave correctly on your machine. rem rem override monitor type in defaults file %1 cd %2 copy %3%4\monquery.exe %1%2 >NUL monquery REM type aaa >> %1%2\ailist\usr_data\defaults REM type aaa >> %1%2\cw\usr_data\defaults rem rem override data_path, tmp_dir entry in the defaults file. %1 cd %2 copy %3%4\convert.exe %1%2 >NUL rem echo data_path: "%1%2\ailist %3%4\ailist" >> %1%2\ailist\usr_data\tmp convert %1%2\ailist\usr_data\tmp %1%2\ailist\usr_data\tmp.out >NUL type %1%2\ailist\usr_data\tmp.out >> %1%2\ailist\usr_data\defaults echo tmp_dir: %1%2\ailist >> %1%2\ailist\usr_data\defaults rem echo data_path: "%1%2\cw %3%4\cw" >> %1%2\cw\usr_data\tmp convert %1%2\cw\usr_data\tmp %1%2\cw\usr_data\tmp.out >NUL type %1%2\cw\usr_data\tmp.out >> %1%2\cw\usr_data\defaults echo tmp_dir: %1%2\cw >> %1%2\cw\usr_data\defaults %3 cd %4 echo * TOPIC installation completed. goto exit :exists echo * echo * The directory (%1%2) already exists. Please delete it echo * or choose another destination for the Topic demonstration. echo * :error echo * INSTALLATION ERROR: echo * echo * You must pass 4 arguments to this install procedure. Arguments 1 and 2 echo * specify an area on you hard disk. Arguments 3 and 4 specify an area echo * on the CD-ROM. echo * For example: if the CD is drive "h" and the hard-disk is drive "c" echo * and the topic area on both drives is "\cdtopic" then install should be echo * called as "install c: \cdtopic h: \cdtopic" echo * echo * Argument 1 = Drive name for Topic swapping area. [Hard Disk] echo * Argument 2 = Directory name for Topic swapping area. [Hard Disk] echo * Argument 3 = Drive name of disk you are installing Topic from. [CD] echo * Argument 4 = Directory name of area you are installing Topic from. [CD] echo * :exit echo on verify on