home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
notes.zip
/
INSTALL.CMD
next >
Wrap
OS/2 REXX Batch file
|
1996-10-02
|
3KB
|
63 lines
/* REXX Script for installing VoiceType Macros for an application */
/* The application and the language can be specified as needed */
/* created 09/30/96 by Herwig Diessner */
/* parameter settings */
application = 'Lotus Notes' /* Insert application name here */
vtlanguage = 'en_us' /* Will be part of installation path */
macrofile = 'NOTES.SPM' /* File extension must be .SPM !!! */
/* RexxUtil calls */
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
/* Welcome Screen */
say 'This programm will install VoiceType macros for ' || application
say
/* Test for OS/2 Warp 4 or later */
env = 'OS2ENVIRONMENT' /* attach OS/2 Env. variables */
ver = SysOS2Ver() /* get current version of OS/2 */
if ver < "2.40" then signal WRONGVER /* wrong version of OS/2 installed */
FINDPATH:
source = DIRECTORY() /* get current directory */
target = value('SPCH_RO',,env) /* value of SPCH_RO in CONFIG.SYS */
if target == '' then signal NOVT /* No VoiceType installed */
target = target || '\langs\' || vtlanguage || '\macros\'
if right(source,1) \= "\" then source = source || "\"
if right(target,1) \= "\" then target = target || "\"
from = source || macrofile
to = target || macrofile
"@copy " from to "> nul" /* copy the file to macros directory */
say macrofile || ' was copied from ' || source
say 'to ' || target
say
say 'To complete installation, open the properties of ' || application
say 'on the Speech page and restore the macros of the'
say 'file ' || to || '.'
signal END
WRONGVER:
say 'The current installed version of OS/2 does not seem to be "OS/2 Warp 4"'
say "If you don't have installed this version, installing VoiceType Macros"
say 'on this computer has no benefit.'
say
say 'Do you still want to continue (y/n) ?'
parse pull answer
if answer == 'y' | answer == 'Y' then signal FINDPATH
signal END
NOVT:
say 'There is no VoiceType installed on this computer or essential settings'
say 'in the CONFIG.SYS file are missing! (Re-) Install VoiceType first'
say 'and continue the installation of the macros for ' || application || ' later.'
signal END
END:
exit