تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
لعمل اختصار على سطح المكتب
#1
كاتب الموضوع : Boutemine Oualid

السلام عليكم و رحمة الله وبركاته


كود :
private static string desktop = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
private static string fileName = "Calc.lnk";
private static void Main(string[] args)
{
WshShell shell = new WshShell();
IWshShortcut link = (IWshShortcut)shell.CreateShortcut(Path.Combine(desktop, fileName));
link.TargetPath = @"C:\WINDOWS\system32\calc.exe";
link.Save();
}
}}}
تم الشكر بواسطة:



التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم