|
|
#1 |
|
Member
Join Date: Sep 09
Posts: 53
![]() |
[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.
__________________
Complete list of How To's, Programming Guides & Tutorials |
|
|
|
|
|
#2 |
|
.NUT
Join Date: May 05
Location: Sydney, Australia
Posts: 54,913
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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
__________________
![]() 2007, 2008, 2009, 2010 Why is my data not saved to my database? | Communicating between multiple forms | MSDN Data Walkthroughs MSDN "How Do I?" Videos: VB | C# VBForums Database Development FAQ My CodeBank Submissions: VB | C# (ForumAccount has translated some of my VB submissions to C#) My Blog: Defining and Raising Custom Events | Manipulating GDI+ Drawings | Using Parameters in ADO.NET |
|
|
|
|
|
#3 |
|
Member
Join Date: Sep 09
Posts: 53
![]() |
Re: [Help] How to create a shortcut
Can some one write a code for this shortcut
netsh firewall set opmode enable
__________________
Complete list of How To's, Programming Guides & Tutorials |
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|