this post was submitted on 13 Apr 2025
6 points (100.0% liked)

AutoHotkey

179 readers
1 users here now

founded 2 years ago
MODERATORS
 

For example, can FileAppend() be set to create something like %COMPUTERNAME%test.txt? I have no idea of what the code for this would be like, if so.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Onomatopoeia@lemmy.cafe 1 points 1 week ago (1 children)

The help file shows it using a variable for the file name.

[โ€“] Flagstaff@programming.dev 1 points 1 week ago

Where? https://www.autohotkey.com/docs/v2/lib/FileAppend.htm

All I see is it using My Script.ahk, not producing My Script DESKTOP_3058.ahk and My Script LAPTOP_362.ahk based on the local machine that the script is run in.

To be transparent, I have a log generator being managed by a script in a Syncthing folder. I'd like to keep the script there if possible, but have the logs be individualized so they don't keep causing sync-conflicts.