VBA script for Windows to create desktop shortcuts

Source: Internet
Author: User


Dim Wshell, Oshortcut
' Dim strdesktop$ ' in order to be compatible with VBS,
Dim strdesktop ' Here rewrite, test pass ...
Set Wshell = CreateObject ("Wscript.Shell")
Strdesktop = Wshell.specialfolders ("Desktop")
Strdesktop = strdesktop + "\ Search Net-sourcing required. lnk"
Set oshortcut = wshell.createshortcut (strdesktop)
Oshortcut.targetpath = Destination path for "http://www.sowu.com/" shortcut object
Oshortcut.description = Description of "mm graph" & vbCrLf & "" ' Shortcut object
' Oshortcut.hotkey = Hotkey for ' ctrl+alt+a ' shortcut object
' oshortcut.workingdirectory = ' D:\Program Files\uusee\skins\uuplayer ' The working directory of the shortcut object
Oshortcut.iconlocation = icon position of "%systemroot%\system32\shell32.dll,211" shortcut object
Oshortcut.save


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.