A_WorkingDir by default set to scrip full path as well.
Is this intended?
A_ScripDir yields script full path instead
Re: A_ScripDir yields script full path instead
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
---------------------------
Re: A_ScripDir yields script full path instead
@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
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
Re: A_ScripDir yields script full path instead
@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.
@TAC109: A_WorkingDir returns the path of a directory, which A_ScriptFullPath is not.
Who is online
Users browsing this forum: No registered users and 26 guests