home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
modemwar.zip
/
Install.CMD
next >
Wrap
OS/2 REXX Batch file
|
1999-02-02
|
2KB
|
59 lines
/* Modem Warrior v1.00 Installation */
call RxFuncAdd 'SysCls','RexxUtil','SysCls'
call SysCls /* Clear the screen */
say "Modem Warrior v1.00 Install"
say "Copyright (C) 1999 Davy Jones Software Locker"
say ""
say "This process will install Modem Warrior v1.00 onto your system."
say ""
say "Davy Jones Software Locker - Making it all make copies"
say ""
say "Enter the target drive and directory"
say "(Default=C:\ModemWar)"
Target=""
pull Target
if Target="" then Target="C:\MODEMWAR"
Source=DIRECTORY()
/* Check to see if directory already exists */
if \(Target=DIRECTORY(Target)) then
do
call RxFuncAdd 'SysMkDir','RexxUtil','SysMkDir'
RetCode=SysMkDir(Target)
if(RetCode) then
do
say "Cannot create directory"Target
exit
end
end
Source=DIRECTORY(Source)
/* Now copy files over */
"copy ModemWar.exe" Target
"copy ModemWar.doc" Target
"copy Install.cmd" Target
/* Copying complete. Ask for installation of desktop object */
say "Would you like to install a program object (Y/N)?"
pull Response
if(Response="y" | Response="Y") then
do
say "Which COM port would you like to use?"
pull ComPort
if ComPort="" then ComPort="COM2"
/* Install Modem Warrior object */
call RxFuncAdd 'SysCreateObject','RexxUtil','SysCreateObject'
Crap=SysCreateObject("WPProgram","Modem Warrior", "<WP_DESKTOP>",,
"EXENAME="Target"\ModemWar.exe;PARAMETERS=-c"ComPort, "replace")
end
e ModemWar.doc
say "Modem Warrior Installation complete!"
exit