home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 14 Text
/
14-Text.zip
/
vid-in.zip
/
INSTINF.CMD
next >
Wrap
OS/2 REXX Batch file
|
1994-10-28
|
2KB
|
102 lines
/* */
'@echo off'
cls
inf_file = 'VIDEOIN.INF'
null = '> nul'
slash = '\'
say 'Starting The OS/2 RexxUtil Functions Please Wait...'
say ' '
Call RxFuncadd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
Call SysLoadFuncs
if RxFuncQuery('SysCls') <> 0 then do
say 'RexxUtil Functions Not Installed On This System!!!!!'
say 'Install Rexx Utilities And Then Rerun This Install Program.'
say ' '
exit
end
else do
say 'RexxUtil Functions Started.'
say ' '
end
/*
find install cmd file location
*/
rtn = setlocal()
parse source na na drivepath
foundl = lastpos('\',drivepath)
found = pos('\',drivepath)
drivepath = left(drivepath,(foundl - 1))
drive = left(drivepath,(found - 1))
drive
'cd' drivepath
say 'Searching for MMPM/2 directories'
say ' '
env = 'OS2ENVIRONMENT'
tst_path = value('PATH',,env)
os2 = pos(':\OS2',tst_path)
os2 = os2 - 1
os2drv = substr(tst_path,os2,2)
mm = pos(':\MMOS2',tst_path)
mm = mm - 1
if mm > 0 then do
Say 'MMPM/2 Directories Located.'
say ' '
mmdrive = os2drv
loc.1 = mmdrive||'\os2\book'
say 'Copying' inf_file 'File To' loc.1
say ' '
'copy' drivepath||slash||inf_file loc.1 null
end
else do
say 'MMPM/2 Not Installed.'
say ' '
mmdrive = os2drv
loc.1 = mmdrive||'\os2\book'
say 'Copying' inf_file 'File To' loc.1
say ' '
'copy' drivepath||slash||inf_file loc.1 null
end
title ='Video In Users Guide'
text ='Multimedia Folder And Then Selecting The' title 'Icon.'
classname='WPProgram'
location ='<MMPM2_FOLDER>'
setup= 'OBJECTID=<MMOS_VIN>;'||,
'EXENAME=view.exe;'||,
'parameters='||inf_file';'||,
'STARTUPDIR='loc.1';'
call BldObj
If created \= 1 Then do
text = title 'Icon.'
location='<WP_DESKTOP>'
call BldObj
end
if created = 1 then do
say ' '
say 'Installation Complete!'
say ' '
say 'The' inf_file 'File May Now Be Viewed On The Desktop By Selecting The'
say text
say ' '
end
else
say 'Installation Failed Desktop Icon Could Not Be Created!!'
rtn = endlocal()
exit
BldObj:
say 'Building: DeskTop Icon(s).'
created = SysCreateObject(classname, title, location, setup, 'F')
If created=1 Then
say '... Icon created!'
say ' '
Return