 フォルダーのランダム壁紙

＜概要＞
　フォルダーの壁紙を、指定したディレクトリのファイルからランダムに選択して変更します。

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

＜インストール＞

    ソースを適当なディレクトリにデータファイルとしてコピーします。ソース中、\os2\bitmapディレクトリを指定している部分のドライブ名を使用する環境のブートドライブに変更してください。
    新規のプログラムオブジェクトを作成し、パスおよびファイル名にコピーしたソースを指定します。パラメータは下記参照。作業ディレクトリは指定不要です。セッションタブでOS/2ウィンドウを選択し、始動時最小化と終了時にクローズをチェックします。
    目的のフォルダーのプロパティを開き、メニュータブを選択します。
    使用可能なメニューからオープンを選択し、メニューでのアクションへ、上記で作成したプログラムオブジェクトをドラッグ＆ドロップします。
    再び使用可能なメニューからオープンを選択し、プロパティボタンを押します。メニュータイプから条件付き２次メニューを選択し、省略時アクションのプルダウンメニューから、今ドラッグ＆ドロップしたフォルダーのランダム壁紙を選択します。
    了解ボタンを押し、プルダウンメニューを閉じます。 

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

    "%*"。固定です。オープンされるフォルダーをREXXに渡します。オンラインマニュアル参照。
    ディレクトリ指定。必ず最後に"\"を付けてください。デフォルト＝OS/2のビットマップディレクトリ
    壁紙にしたいファイルの拡張子。Warp4では、JPGやGIFも壁紙に指定できます。デフォルト＝"BMP"
    壁紙のタイプ。"N"＝通常、"T"＝タイル。デフォルト＝"N" 

例：%* f:\os2\bitmap\ bmp T
　　%* c:\windows\

＜実行＞
　目的のフォルダーのアイコンをダブルクリックしてください。フォルダーがオープンされ、ランダムに選択された壁紙が表示されます。


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

Random wallpapers for folders

<Overview>
　The wallpaper of the folder is changed by randomly selecting from the files in the specified directory.

<Prerequisites and Restrictions>
　Folder names and directory names 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 the copied source for the path and filename. 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.
    Open the properties of the desired folder and select the Menu tab.
    Select Open from the available menu and drag and drop the program object created above onto the action in the menu.
    Select Open from the menu available again and press the Properties button. Select Conditional Secondary Menu from Menu Type, and from the Default Action pull-down menu, select Random wallpaper from the folder you just dragged and dropped.
    Press the OK button to close the pull-down menu.

<Parameter>
　Delimited by a space and specified in the properties of the program object. The first parameter cannot be omitted. 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.

    "%*". Fixed. Pass the folder to be opened to REXX. See online manual.
    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: %* f:\os2\bitmap\bmpT
　　%* c:\windows\

<Execute>
　Double-click the icon of the desired folder. A folder will be opened with a randomly selected wallpaper.


LINK
https://web.archive.org/web/20041115132009/http://www2u.biglobe.ne.jp/~gwm01021/rexx2-1.htm

