Working directory for Loop Files?

Get help for the alpha version of AutoHotkey v2 here. Please state the v2 version you are working with in the title when making a new topic.
Posts: 8
Joined: 16 Jun 2015, 23:49

Working directory for Loop Files?

Post by stretch65 » 08 Dec 2020, 05:41


The "Loop Files" command for file traversal uses the current working directory contained in "A_WorkingDir".
If I change the working directory (using "SetWorkingDir") inside the "Loop Files" loop, does the command still remember
and use the original working directory for each iteration?? I would imagine that it does but I'm just checking.

Posts: 4126
Joined: 11 Jan 2017, 17:59

Re: Working directory for Loop Files?

Post by swagfag » 08 Dec 2020, 06:38

it uses whatever directory was the default one prior to the loop starting. basically it takes a snapshot, it doesnt matter what u set the default to afterwards

Post Reply

Return to “AutoHotkey v2 Help”