Working directory for Loop Files?

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
stretch65
Posts: 21
Joined: 16 Jun 2015, 23:49

Working directory for Loop Files?

Post by stretch65 » 08 Dec 2020, 05:41

Hi,

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.

swagfag
Posts: 6222
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 “Ask for Help (v2)”