home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
zeryxvp.zip
/
INSTALL.CMD
next >
Wrap
OS/2 REXX Batch file
|
2000-05-26
|
3KB
|
150 lines
/**/
'@ECHO OFF'
rc = rxfuncadd("sysloadfuncs","rexxutil","sysloadfuncs")
call sysloadfuncs
visprorx = value("VISPRORX",,"OS2ENVIRONMENT")
none = 1
if visprorx<>"" then
do
call sysfiletree "C:\VISPRORX",file,'D'
if file.0 <> 0 then
visprorx = "C:\VISPRORX"
end
drop file.
if visprorx<>"" then
do
rc = instrx()
if rc<>0 then
do
say "Installation aborted"
say "resolve problem and try again"
return 0
end
end
else
say "Vispro Rexx not found installation failed"
return 0
instc:
'copy vczxpbar.dll 'visproc'>NUL 2>NUL'
if rc<>0 then
do
say "Could not copy file vczxpbar.dll in directory "visproc
say "Close Vispro C before installing zxpbar"
return 1
end
'copy vczxpbar.hlp 'visproc'>NUL 2>NUL'
if rc<>0 then
do
say "Could not copy file vczxpbar.hlp in directory "visproc
say "Close ZxPbar help before installing"
return 1
end
'copy vczxpbar.lib 'visproc'>NUL 2>NUL'
if rc<>0 then
do
say "Could not copy file vczxpbar.lib in directory "visproc
return 1
end
'copy vczxpbar.h 'visproc '>NUL 2>NUL'
if rc<>0 then
do
say "Could not copy file vczxpbar.lib in directory "visproc
return 1
end
file = visproc'\vprclass'
call sysfilesearch "VPZxPBar",file,'rez'
if rez.0 = 0 then
do
rc = stream(file,'c','CLOSE')
call lineout file,"VPZxPBar"
call lineout file
end
say "Installed files for Vispro c"
none = 0
return 0
instrx:
'copy vpzxpbar.dll 'visprorx'>NUL 2>NUL'
if rc<>0 then
do
say "Close Vispro Rexx before installing zxpbar"
return 1
end
'copy vpzxpbar.hlp 'visprorx'>NUL 2>NUL'
if rc<>0 then
do
say "Could not copy file vpzxpbar.hlp in directory "visprorx
say "Close ZxPbar help before installing"
return 1
end
file = visprorx'\vprclass'
call sysfilesearch "VPZxPBar",file,'rez'
if rez.0 = 0 then
do
rc = stream(file,'c','CLOSE')
call lineout file,"VPZxPBar"
call lineout file
end
say "Installed files for Vispro rexx"
none = 0
return 0
instcp:
'copy vszxpbar.dll 'visprocp'>NUL 2>NUL'
if rc<>0 then
do
say "Close Vispro C++ before installing zxpbar"
say "Could not copy file vszxpbar.hlp in directory "visprocp
return 1
end
'copy vszxpbar.hlp 'visprocp'>NUL 2>NUL'
if rc<>0 then
do
say "Could not copy file vszxpbar.hlp in directory "visprocp
say "Close ZxPbar help before installing"
return 1
end
'copy vszxpbar.lib 'visprocp'>NUL'
if rc<>0 then
do
say "Could not copy file vszxpbar.lib in directory "visprocp
return 1
end
'copy vszxpbar.hpp 'visprocp'>NUL'
if rc<>0 then
do
say "Could not copy file vszxpbar.lib in directory "visprocp
return 1
end
file = visprocp'\vprclass'
call sysfilesearch "VPZxPBar",file,'rez'
if rez.0 = 0 then
do
rc = stream(file,'c','CLOSE')
call lineout file,"VPZxPBar"
call lineout file
end
say "Installed files for Vispro c++"
none = 0
return 0