Quote COM Components Windows Script Host Object Model, create shortcuts

xiaoxiao2021-03-06  41

String DK = system.environment.getFolderPath (System.Environment.SpecialFolder.Desktop); // Get a desktop folder

Iwshruntimelibrary.wshshell shell = new iWshruntimelibrary.wshshellclass ();

Iwshruntimelibrary.iwshshshstimalbutcut = (iWshruntiMelibrary.iwshshstcut) shell.createshortcut (@ DK "

//a.lnk ");

Shortcut.targetPath = @ "c: / program files / Internet explorer / ipplore.exe";

Shortcut.Arguments = "

http:// localhost / 2005 / bay ";

Shortcut.description = "My Shortcut";

Shortcut.hotkey = "Ctrl Shift N";

Shortcut.iconlocation = "Notepad.exe, 0";

Shortcut.save ();

转载请注明原文地址:https://www.9cbs.com/read-76300.html

New Post(0)