you can use the Enviroment.SpecialFolder enumeration, although depending on your requirements, you can look at creating a Windows service, and not at the application that should start at startup.
File.Copy("shortcut path...", Environment.GetFolderPath(Environment.SpecialFolder.Startup) + shorcutname);
edit:
File.Copy simply takes the file and file into the path for copying the file. The key in this fragment is Enviroment.GetFolderPath (Enviroment.SpecialFolder.Startup), which gets the path to the startup folder for copying.
You can use the above code in several ways. If you had an installer project for your application, you can run something like this during installation. Another way could be when the application launches it, checks if the shorcut exists and whether it places it there if not (File.Exists ()).
Here is the question of creating shortcuts in code.
Patrick kafka
source share