Page 1 of 1

Script dir

Posted: 30 Nov 2021, 11:15
by Marco N
I'm searching for the way to get script full path folder but A_ScriptFullPath provides "C:\Program Files\MacroCreator\MacroCreator.exe" and not the script path. Why?

Re: Script dir

Posted: 01 Dec 2021, 05:52
by Pulover
Because that's an AHK variable. See if CurrentFileName is what you're looking for.

Re: Script dir

Posted: 01 Dec 2021, 06:54
by Marco N
Yes, I see that CurrentFileName can be use together with SplitPath to extract the OutDir that it is what I'm looking for.

Thank you
Marco