How to execute application or batch file at startup

You have multiple options for doing this:


Option 1:

  1. Create a shortcut of you application or batch file. 
  2. Copy that shortcut to "C:\Documents and Settings\\Start Menu\Programs\Startup" folder. (Note :  replace this with actual user name that you login with).
  3. Now on the next log-on your application or batch file will execute.
 Option 2:

  1. You can create a registry key under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run with the name of the application you want to execute, of type REG_SZ.
  2. Set the path of executable as a value of the key created. 
  3. Append " /STARTUP" at the end of value and you are done.

No comments:

Post a Comment

Golang: Http POST Request with JSON Body example

Go standard library comes with "net/http" package which has excellent support for HTTP Client and Server.   In order to post JSON ...