Short: waits for a specified file. Author: lorylombus@gmail.com (Lorence Lombardo) Uploader: lorylombus@gmail.com (Lorence Lombardo) Type: util/batch Version: 1.1b Architecture: m68k-amigaos; ppc-amigaos; ppc-morphos waitfile 1.1b (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 exists $prefix:home/$user/Public/tmp/ffp.tmp set sz `c:list $prefix:home/$user/Public/tmp/ffp.tmp LFORMAT "%L"` if val $sz not GT 0 c:wait 1 skip back top endif else c:wait 1 skip back top endif with:- c:waitfile $prefix:home/$user/Public/tmp/ffp.tmp . 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. 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 http://geocities.ws/lorylomb/