Results 1 to 3 of 3

Thread: [Help] How to create a shortcut

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Posts
    76

    [Help] How to create a shortcut

    I am developing a project in which on clicking on create button A shortcut to disable Firewall in Windows 7 will be created on desktop.

    The command is
    netsh firewall set opmode enable

    We can though simply create a shortcut through desktop > right clcik > new > shortcut > netsh firewall set opmode enable > finish

    But I want to create it when user want on desktop any ideas how to do iy.
    < advertising link removed by moderator >

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [Help] How to create a shortcut

    There's no way to do it in managed code, unless you can find something in the deployment part of the Framework. The only way I've seen is using the Windows Script Host.

    http://www.knowdotnet.com/articles/c...ondesktop.html
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Posts
    76

    Re: [Help] How to create a shortcut

    Can some one write a code for this shortcut

    netsh firewall set opmode enable
    < advertising link removed by moderator >

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width