C # code for creating shortcuts without COM components

Source: Internet
Author: User

I looked at some of the gadgets in my hand, many of which are single files but can create shortcuts. So I searched Google and finally found a very powerful class at the Russian Forum rsdn.

Class File Download: http://asen.googlecode.com/files/Shortcut.cs (uncommented Lite version)
Rsdn original post: http://www.rsdn.ru/forum/src/3098615.flat.aspx (with English notes)

The usage is very simple. Add this file to your project and use it similar to that of the COM component, but it is slightly different:

CopyCodeThe Code is as follows: shortcut SC = new shortcut ();
SC. Path = "target file address ";
SC. Arguments = "startup parameters ";
SC. workingdirectory = "Startup File Folder ";
SC. Description = "Description ";
SC. Save ("where is this accounting method saved ");

Close the ticket ~

Package and download the script

Related Article

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.