Hi everybody, here's the thing :
I have a script that relies on another software's txt config file.
During script execution, that config file shouldn't be modified in any way, by any software.
Is there a way to lock that file during script execution, and release it on exit ?
Thank you.
Lock a text file while the script is running Topic is solved
-
- Posts: 222
- Joined: 07 Mar 2021, 07:44
Re: Lock a text file while the script is running
If you rename the file, the other software would be unlikely to find it. You could also work with a copy of the file. Although you can set the file to read-only status, that would not prevent other software from changing the status again.
-
- Posts: 222
- Joined: 07 Mar 2021, 07:44
Re: Lock a text file while the script is running
Thanks.
I cannot rename the file, because the other software still needs to be able to find it and read it. Just not write it.
I could set it to read-only permanently though, via Windows.
But isn't there a way to do it via AHK ?
Who is online
Users browsing this forum: Bing [Bot], GEOVAN, mihai369, norot41087, Rohwedder and 123 guests