// Create the shortcut
IWshRuntimeLibrary.IWshShortcut MyShortcut;
// Choose the path for the shortcut
MyShortcut = (IWshRuntimeLibrary.IWshShortcut)WshShell.CreateShortcut(@"C:\MyShortcut.lnk");
// Where the shortcut should point to
MyShortcut.TargetPath = Application.ExecutablePath;
// Description for the shortcut
MyShortcut.Description = "Launch My Application";
// Location for the shortcut's icon
MyShortcut.IconLocation = Application.StartupPath + @"\app.ico";
// Create the shortcut at the given path
MyShortcut.Save();
}
[출처] http://www.geekpedia.com/tutorial125_Create-shortcuts-with-a-.NET-application.html
정규식 몇개... (0) | 2010.02.01 |
---|---|
IP 주소 가져오기 (0) | 2009.12.22 |
Connection strings for Informix (0) | 2009.08.14 |
Visual C#.NET을 사용하여 XML 파일에 특수 문자 사용 (0) | 2009.08.12 |
MAC Address (0) | 2009.05.25 |