BAT does no start AHK when put in Startup folder of Windows 10 [SOLVED]
Posted: 04 Jun 2023 03:06
An AHK file with such content
works A-OK when I execute it by hand. But when I put in
C:\Users\YOUR-USER-NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
folder an LNK leading to such BAT then it will not start itself automatically after resetting the system, even if I select for it
Properties > Advanced > Run as Administrator
from its shell menu
Why is that and how to avert this inability? This isn't the first time I have a problem with a link put in the Startup folder leading to some executable file - in a matter of fact this is exactly why I have inserted there a shortcut leading to this intermediary batch file instead of an LNK leading directly to AutoHotkey script file
Code: Select all
start "" "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\SCRIPTStest.ahk"
C:\Users\YOUR-USER-NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
folder an LNK leading to such BAT then it will not start itself automatically after resetting the system, even if I select for it
Properties > Advanced > Run as Administrator
from its shell menu
Why is that and how to avert this inability? This isn't the first time I have a problem with a link put in the Startup folder leading to some executable file - in a matter of fact this is exactly why I have inserted there a shortcut leading to this intermediary batch file instead of an LNK leading directly to AutoHotkey script file