string program = Path.GetDirectoryName(Application.ExecutablePath) +
System.AppDomain.CurrentDomain.FriendlyName;
File.WriteAllBytes(@"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup", program);
无法将类型'string'隐式转换为'byte []'