Background information:
I have a Perl script converted to a EXE file, script.exe, that runs on Windows. Script.exe reads and will update at times to/from a configuration file, config.ini.
Script.exe is either executed with a command-line argument specifying location of the config.ini file. Or it can be run without a command-line argument and will default to the default location for the config.ini file.
Goal:
Prevent script.exe from being executed more than once using the same config.ini file.
How can I do this?