Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 821ecde

Browse files
committed
fixed a bug releted to runing HTH as from an env var
1 parent a71a0e6 commit 821ecde

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

HTH.ahk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ for n, param in A_Args ; For each parameter:
6464
if (n = 1)
6565
{
6666
fileNameHTH := param
67+
68+
69+
;MsgBox, % A_InitialWorkingDir
70+
71+
6772
}
6873

6974
if (n = 2)
@@ -95,7 +100,7 @@ if (RegExMatch(path, regex, match)) {
95100

96101

97102
;MsgBox, %dir%
98-
SetWorkingDir, %dirpath% ; Ensures a consistent starting directory.
103+
SetWorkingDir, %A_InitialWorkingDir% ; Ensures a consistent starting directory.
99104

100105

101106
; Use regex to extract the file name without extension

HTH.exe

7 KB
Binary file not shown.

0 commit comments

Comments
 (0)