|
|
#1 |
|
Lively Member
Join Date: Sep 09
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 |
|
.NUT
Join Date: May 05
Location: Sydney, Australia
Posts: 61,542
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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-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 (Nullable Data Extensions *NEW*) (Serial Code TextBox *NEW*) | C# (ForumAccount has translated some of my VB submissions to C#) My Blog: Defining and Raising Custom Events | Using Parameters in ADO.NET | Keyboard Events *NEW* |
|
|
|
|
|
#3 |
|
Lively Member
Join Date: Sep 09
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 > |
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|