name: waitfile description: waits for a specified file version: 1.0 author: Lorence Lombardo submitter: Lorence Lombardo email: lorylombus/gmail com url: http://geocities.ws/lorylomb/ category: utility/script license: Public domain minosversion: 4.0 distribute: yes fileid: 13730 hend: Architecture: m68k-amigaos; ppc-amigaos; ppc-morphos waitfile 1.0 (c) 2026 Lorence Lombardo. ? "waitfile" waits for a specified file without sucking the guts out of your CPU since checks are made in every one tenth of a second intervals. It is currently believed that using "waitfile" in your DOS script is superior to doing it entirely with the DOS script. So "waitfile" would replace the following:- lab top if not exists WinDH_C:WinUAE/winuae_dll/T/FFinfo c:wait 1 skip back top endif c:wait 1 with:- c:waitfile WinDH_C:WinUAE/winuae_dll/T/FFinfo . Of coarse "waitfile" can be aborted with a Ctrl-c if your file decides to not show up. "waitfile" has been tested on 68k and on the native sides of WinUAE and AmiBerry when waiting for redirection files. The "bonus" directory contains some examples of using "waitfile". NB: Zero byte files do not count. Standard disclaimer:- If you decide to use this material you do so at your own risk. Related URL's:- http://geocities.ws/lorylomb/file_ab.txt http://geocities.ws/lorylomb/file_ab.lha http://geocities.ws/lorylomb/mms_68k_uae.txt http://geocities.ws/lorylomb/mms_68k_uae.lha