Search code examples
c#network-programmingregistryexe

How to Automatically start Application


I work on C#.recently i work on Tcp server-client .I write a client application .want it's start automatically when client start os .Actually i have an exe,want it active when user start his computer.What i need to do?Thanks.if have any query plz ask.


Solution

  • There are many ways that you can make an application start at run time.

    For a list of locations. Check this article

    To summarize they are

    Start->Programs->StartUp folder

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run