Cycle de progression Faire (quelque chose qui marche) -> comprendre ce que l’on fait/comment cela marche -> pousser plus loin les notions
| private void CreateShortCut(string fileName) { string Desktop = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); WshShell oWshShell = new WshShell(); IWshShortcut oIWshShortcut = (IWshShortcut)oWshShell.CreateShortcut(Path.Combine(Desktop, Path.GetFileNameWithoutExtension(fileName) + ".lnk")); oIWshShortcut.TargetPath = fileName; oIWshShortcut.Save(); } |
| CreateShortCut(« C:/Documents and Settings/romagny/Mes documents/monapplication.exe »); |