 Random Wallpaper Loop
 ランダム壁紙ループ

＜概要＞
　デスクトップの壁紙を、指定された秒数毎に、指定したディレクトリのファイルからランダムに選択して変更します。ランダム壁紙と使い分けてください。

＜前提条件・制限＞
　ディレクトリ名にスペースを含めることはできません。

＜インストール＞

    ソースを適当なディレクトリにデータファイルとしてコピーします。ソース中、\os2\bitmapディレクトリを指定している部分のドライブ名を使用する環境のブートドライブに変更してください。
    新規のプログラムオブジェクトを作成し、パスおよびファイル名に"CMD.EXE"を指定します。パラメータは、以下の形式で指定します。
    /c "detach （コピーしたソース） （RNDWLOOP.CMDのパラメータ）"
    例：/c "detach F:\UTILITY\bin\RNDWLOOP.CMD 60 e:\wallp\ jpg"
    　パラメータは下記参照。作業ディレクトリは指定不要です。セッションタブでOS/2ウィンドウを選択し、始動時最小化と終了時にクローズをチェックします。
    プログラムオブジェクトのシャドウを始動ディレクトリに作成します。 

＜パラメータ＞
　スペースで区切り、プログラムオブジェクトのプロパティで指定します。後ろのパラメータを記述する場合、それより前のパラメータは省略できません。つまり、３番目のパラメータを記述する場合、１番目、２番目のパラメータも記述する必要があります。TRACEコマンド用のパラメータも指定できます。

    壁紙を書き替える間隔（秒）。デフォルト＝60
    ディレクトリ指定。必ず最後に"\"を付けてください。デフォルト＝OS/2のビットマップディレクトリ
    壁紙にしたいファイルの拡張子。Warp4では、JPGやGIFも壁紙に指定できます。デフォルト＝"BMP"
    壁紙のタイプ。"N"＝通常、"T"＝タイル。デフォルト＝"N" 

例：10 f:\os2\bitmap\ bmp T
　　120 c:\windows\

＜実行＞
（ご注意）このREXXを止めるには、WatchCatなどのツールが必要です。WatchCatの場合、TYPEがdetachでNAMEがCMD.EXEのプロセスをkillしてください。当たり前ですが、OS/2の終了時には止まります。その時、システム設定－システム－確認－OS/2とDOSウィンドウのクローズの確認をONにしていると、クローズ確認のダイアログが表示されます。また、原因は不明ですが、知らない間に止まっている場合もあります。
　OS/2を起動時に眺めていてください（笑）。一瞬前の壁紙が表示され、次にランダムに選択された壁紙が表示されます。そしてしばらく待っていると、再び変更されます。

ENGLISH TRANSLATION WITH GOOGLE
--------------------------------

Random Wallpaper Loop

<Overview>
　The desktop wallpaper will be randomly selected and changed from files in the specified directory every specified number of seconds. Please use it properly with random wallpaper.

<Prerequisites and Restrictions>
　The directory name cannot contain spaces.

<Installation>

    Copy the source to a suitable directory as a data file. Change the drive name in the part that specifies the \os2\bitmap directory in the source to the boot drive of the environment that uses it.
    Create a new program object and specify "CMD.EXE" for the path and filename. Specify the parameters in the following format.
    /c "detach (copied source) (RNDWLOOP.CMD parameter)"
    Example: /c "detach F:\UTILITY\bin\RNDWLOOP.CMD 60 e:\wallp\ jpg"
    See below for parameters. It is not necessary to specify the working directory. Select the OS/2 window in the Sessions tab and check Minimize on startup and Close on exit.
    Create a shadow of the program object in the startup directory.

<Parameter>
　Delimited by a space and specified in the properties of the program object. When describing the parameters after it, the parameters before it cannot be omitted. In other words, if you write the 3rd parameter, you must also write the 1st and 2nd parameters. You can also specify parameters for the TRACE command.

    Interval in seconds between wallpaper refreshes. default = 60
    Specify directory. Be sure to add "\" at the end. Default = OS/2 bitmap directory
    The extension of the file you want to use as wallpaper. In Warp4, JPG and GIF can also be specified as wallpaper. Default = "BMP"
    Wallpaper type. "N" = normal, "T" = tile. Default = "N"

Example: 10 f:\os2\bitmap\bmpT
　　120 c:\windows\

<Execute>
(Caution) To stop this REXX, you need a tool such as WatchCat. For WatchCat, kill the process whose TYPE is detach and whose NAME is CMD.EXE. Naturally, it stops when OS/2 is terminated. At that time, if System Settings - System - Confirmation - Confirmation of closing OS/2 and DOS windows is ON, a close confirmation dialog will be displayed. In addition, although the cause is unknown, it may stop without knowing.
Please look at OS/2 when it starts up (laughs). The previous wallpaper is displayed for a moment, then a randomly selected wallpaper is displayed. And if you wait a while, it will change again.

LINK
https://web.archive.org/web/20041115044357/http://www2u.biglobe.ne.jp/~gwm01021/rexx1-2.htm