using IWshRuntimeLibrary;
string profileNewFileName = Path.Combine(shortCutPath, @"short-cut.lnk");
if (File.Exists(profileNewFileName))
{
File.Delete(profileNewFileName);
}
// Choose the path for the shortcut
IWshShortcut shortcut = (IWshShortcut)wshShell.CreateShortcut(profileNewFileName);
string programeMenuPath = ProgramFilesx86();
// Where the shortcut should point to
shortcut.TargetPath = Path.Combine(programeMenuPath, @"run aaa.exe");
_profile = @"Config/Profile/Profile1.xml";
_profile = Path.Combine(programeMenuPath, _profile);
shortcut.Arguments = "-f /"" + _profile + "/"";
// Create the shortcut at the given path
shortcut.Save();