Hack Forums
[Shell] How to add an exe file to startup in bash - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Shell] How to add an exe file to startup in bash (/showthread.php?tid=6007084)



How to add an exe file to startup in bash - f4keg0d - Sep 11, 2019

Hello, strangers im looking for a script to add x.exe to startups.

Note: Im LOOKING for windows batch script.

:)


RE: How to add an exe file to startup in bash - myselfandi - Sep 12, 2019

just add your executable path to the following registry keys depending on the permission you have.
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run


RE: How to add an exe file to startup in bash - f4keg0d - Sep 13, 2019

(Sep 12, 2019 02:43 PM)myselfandi Wrote:  just add your executable path to the following registry keys depending on the permission you have.
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

should iuse "%AppData%\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\" or HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run ؟