I have a C# WinForm application with a service.exe in the Resources. I want to put the file in the resource (service.exe) to startup when the WinForm app is opened.
What I have Tried
I tried copying the file to startup foldeer like this, but not working for some reason!
String path = @"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\service.exe";
File.WriteAllBytes(path,Properties.Resources.SystemServices);
Thanks :D