in reply to Determining if self is already running under WinNT/2000
I simply use flock with LOCK_NB - if another process has the lock then exit.