A_ScripDir yields script full path instead

Report problems with documented functionality
User avatar
uname
Posts: 23
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: 9442
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: A_ScripDir yields script full path instead

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: 1111
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 scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

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: No registered users and 18 guests