To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
Part 10 of the Visual Basic .NET 2010 Express Tutorial Complete!
How to Use the Visual Studio Code Analysis Tool FxCop
Article :: Interview with Andrei Alexandrescu (Part 3 of 3)
Introducing Visual Studio LightSwitch
Visual Studio LightSwitch Beta 1 is Available



Go Back   VBForums > Visual Basic > Visual Basic .NET

Reply Post New Thread
 
Thread Tools Display Modes
Old Nov 28th, 2009, 09:26 AM   #1
riteshtechie
Lively Member
 
Join Date: Sep 09
Posts: 76
riteshtechie is an unknown quantity at this point (<10)
[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 >
riteshtechie is offline   Reply With Quote
Old Nov 28th, 2009, 07:08 PM   #2
jmcilhinney
.NUT
 
jmcilhinney's Avatar
 
Join Date: May 05
Location: Sydney, Australia
Posts: 61,542
jmcilhinney has a reputation beyond repute (3000+)jmcilhinney has a reputation beyond repute (3000+)jmcilhinney has a reputation beyond repute (3000+)jmcilhinney has a reputation beyond repute (3000+)jmcilhinney has a reputation beyond repute (3000+)jmcilhinney has a reputation beyond repute (3000+)jmcilhinney has a reputation beyond repute (3000+)jmcilhinney has a reputation beyond repute (3000+)jmcilhinney has a reputation beyond repute (3000+)jmcilhinney has a reputation beyond repute (3000+)jmcilhinney has a reputation beyond repute (3000+)
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*
jmcilhinney is offline   Reply With Quote
Old Nov 29th, 2009, 12:34 AM   #3
riteshtechie
Lively Member
 
Join Date: Sep 09
Posts: 76
riteshtechie is an unknown quantity at this point (<10)
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 >
riteshtechie is offline   Reply With Quote
Reply

Go Back   VBForums > Visual Basic > Visual Basic .NET


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:10 AM.





Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.