home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
gaia101a.zip
/
UpdDesk.cmd
< prev
Wrap
OS/2 REXX Batch file
|
1996-04-30
|
2KB
|
51 lines
/* Aggiorna il DeskTop */
Parse arg PathExe
IF PathExe = '' THEN
return
NL=D2C(13)
/* Carica le funzione per manipolare oggetti WPS */
CALL RxFuncAdd 'SysCreateObject', 'RexxUtil', 'SysCreateObject'
/* Crea Il folder contenitore */
res = SysCreateObject("WPFolder", "Gaia"||NL||" 1.01a", "<WP_DESKTOP>", "OBJECTID=<GAIAFOLDER>;ALWAYSSORT=YES;ICONFILE=" || PathExe || "\gaia.ico", replace)
IF STREAM(PathExe||'\GaiaNav.exe', 'c', 'query exists') <> '' THEN
DO
res = SysCreateObject("WPProgram", "Gaia"||NL||" Navigator", "<GAIAFOLDER>", "EXENAME=" || PathExe || "\GaiaNav.exe;STARTUPDIR=" || PathExe, replace)
END
IF STREAM(PathExe||'\GaiaCru.exe', 'c', 'query exists') <> '' THEN
DO
res = SysCreateObject("WPProgram", "Gaia"||NL||" Cruiser", "<GAIAFOLDER>", "EXENAME=" || PathExe || "\GaiaCru.exe;STARTUPDIR=" || PathExe, replace)
END
IF STREAM(PathExe||'\Install.exe', 'c', 'query exists') <> '' THEN
DO
res = SysCreateObject("WPProgram", "Installer"||NL||" v1.1", "<GAIAFOLDER>", "EXENAME=" || PathExe || "\Install.exe", replace)
END
IF STREAM(PathExe||'\GaiaCru.inf', 'c', 'query exists') <> '' THEN
DO
res = SysCreateObject("WPProgram", "Gaia"||NL||" Cruiser (INF)", "<GAIAFOLDER>", "EXENAME=view.exe;PARAMETERS=" || PathExe || "\GaiaCru.inf;ICONFILE=" || PathExe || "\help2.ico", replace)
END
IF STREAM(PathExe||'\GaiaNav.inf', 'c', 'query exists') <> '' THEN
DO
res = SysCreateObject("WPProgram", "Gaia"||NL||" Navigator (INF)", "<GAIAFOLDER>", "EXENAME=view.exe;PARAMETERS=" || PathExe || "\GaiaNav.inf;ICONFILE=" || PathExe || "\help2.ico", replace)
END
IF STREAM(PathExe||'\Install.inf', 'c', 'query exists') <> '' THEN
DO
res = SysCreateObject("WPProgram", "Installer"||NL||" (INF)", "<GAIAFOLDER>", "EXENAME=view.exe;PARAMETERS=" || PathExe || "\Install.inf;ICONFILE=" || PathExe || "\help2.ico", replace)
END
IF STREAM(PathExe||'\ReadMe.inf', 'c', 'query exists') <> '' THEN
DO
res = SysCreateObject("WPProgram", "Read Me"||NL||" (INF)", "<GAIAFOLDER>", "EXENAME=view.exe;PARAMETERS=" || PathExe || "\ReadMe.inf;ICONFILE=" || PathExe || "\HELP.ICO", replace)
END