home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR10
/
CSEDB2.ZIP
/
INSTALL.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-07-31
|
1KB
|
34 lines
/* Install for CS-Edit/2 */
Arg Drive
If Drive = '' Then Do
Say 'The install program needs a drive to install onto.'
Say 'Please enter the drive you would like CS-Edit/2 installed on,'
Say '<Default C:>'
valid = 0
Parse Pull Drive
If Drive = '' The Drive = 'C:'
Drive = STRIP(Drive)
If RIGHT(Drive, 1) <> ':' Then Drive = Drive || ':'
End
Else Drive = STRIP(Drive)
Directory = '\CSEDIT2'
Say 'Making the CS-Edit/2 Directory...'
Say
'MD 'Drive||Directory
Say
Say "PKUNZIP2'ing the CSEDIT.ZIP file. If this step fails, edit this .CMD file"
Say 'and Change all occurrences of PKUNZIP2 to your unzip program.'
Say
'PKUNZIP2 CSEDIT.ZIP 'Drive||Directory
Say
Say 'Creating a program object for CS-Edit/2 on your desktop...'
Call RxFuncAdd 'SysCreateObject', 'REXXUTIL', 'SysCreateObject'
Call SysCreateObject 'WPProgram', 'CS-Edit/2', '<WP_DESKTOP>', 'EXENAME='Drive||Directory||'\CSEDIT.EXE; STARTUPDIR='Drive||Directory, 'R'
If result = 1 Then
Say 'CS-Edit/2 installed!'
Else
Say 'Problem in CS-Edit/2 installation...'
Exit