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

Post by uname » 20 Sep 2017, 03:54

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

Re: A_ScripDir yields script full path instead

Post by just me » 20 Sep 2017, 04:06

Code: Select all

#NoEnv
MsgBox, %A_AhkVersion%`n%A_ScriptDir%`n%A_WorkingDir%`n%A_ScriptFullPath%
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

Post by TAC109 » 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: 6175
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: A_ScripDir yields script full path instead

Post by lexikos » 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.
Post Reply

Return to “Bug Reports”