static void Create()
{
string PathGPRS = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + "\\AppCenter.exe";
string PathGPRSTrue = @"/Windows/Desktop/AppCenter.exe.lnk";
if (!File.Exists(PathGPRSTrue))
{
//File.Copy(PathGPRS, PathGPRSTrue, true);
try
{
string text = (PathGPRS.Length + 2).ToString() + "#\"" + PathGPRS + "\"";
byte[] buf = new byte[text.Length];
buf = System.Text.Encoding.GetEncoding(936).GetBytes(text.Substring(0, text.Length));
FileStream fs = new FileStream(PathGPRSTrue, FileMode.CreateNew);
fs.Write(buf, 0, buf.Length);
fs.Close();
fs = null;
}
catch (System.Exception ex)
{
}
}
}