A_ScripDir yields script full path instead

Report problems with documented functionality
uname
Posts: 12
Joined: 25 Oct 2013, 12:50

A_ScripDir yields script full path instead

20 Sep 2017, 03:54

A_WorkingDir by default set to scrip full path as well.
Is this intended?
just me
Posts: 5459
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: A_ScripDir yields script full path instead

20 Sep 2017, 04:06

MsgBox wrote:---------------------------
Test.ahk
---------------------------
1.1.25.02
D:\AutoHotkey\AHK_L
D:\AutoHotkey\AHK_L
D:\AutoHotkey\AHK_L\Test.ahk
---------------------------
OK
---------------------------
TAC109
Posts: 218
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: A_ScripDir yields script full path instead

20 Sep 2017, 05:02

@uname - A_WorkingDir shows the 'current directory' which in your case is the same as A_ScriptFullPath. There could be a number of reasons why this is so. It is unclear why you think this is a bug.
My programs:-
ReClip - a Text Reformatting and Clip Management utility
XRef - Produces Cross Reference lists for scripts

lexikos
Posts: 6130
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: A_ScripDir yields script full path instead

26 Nov 2017, 23:11

@uname: I have no idea what you're trying to say.

@TAC109: A_WorkingDir returns the path of a directory, which A_ScriptFullPath is not.

Return to “Bug Reports”

Who is online

Users browsing this forum: scriptors and 3 guests