home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: WPS_PM
/
WPS_PM.zip
/
dltabk.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-10-17
|
788b
|
18 lines
/* 1.1 GWBarrowcliff Change Desktop background on the hour */
/* 1.2 GWB Change the Desktop immediately when loaded, then on the hour after */
/* Start it in the background with: start "Change Background" /b /c /min dltaback.cmd */
call RxFuncAdd 'SysLoadFuncs' , 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
/* Call SysSleep secs() */ /* Wait until on the hour */
Call SysFileTree "C:\os2\bitmap\*.BMP" , "sorted" ,"o"
do until the_twelth_of_never=0
i = random(1,sorted.0)
say 'Time=' time("N") ||', Selected Bitmap=' sorted.i
result=SysSetObjectData("<WP_DESKTOP>",'BACKGROUND='||sorted.i)
Call SysSleep secs() /* don't let the drift catch you */
end
return
secs:
return(3600-(left(right(time("N"),5),2)*60+right(time("N"),2)))