Thanks to skrommel, I'm using a script that checks for the existence of a file:
If this file doesn't exist, it creates it and starts a process on my PC that I only want to run once a day. My problem: the script is also working when not only the file does not exist, but also when the path itself (D:\data\program files\Autohotkey\daily\) does not exist. So the process is also started when I run AutoHotkey from my USB stick on another PC.
What would be the best way to prevent this?
Code
IfNotExist,D:\data\program files\Autohotkey\daily\0815_%A_YYYY%-%A_MM%-%A_DD%.txtIf this file doesn't exist, it creates it and starts a process on my PC that I only want to run once a day. My problem: the script is also working when not only the file does not exist, but also when the path itself (D:\data\program files\Autohotkey\daily\) does not exist. So the process is also started when I run AutoHotkey from my USB stick on another PC.
What would be the best way to prevent this?



