TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
narasiman man
NA
0
118k
creating short cut in vb.net
Jun 27 2012 2:47 AM
I send the question how to create a short cut in vb.net using Csharp.
you send the answer
You will get the idea from here.
Here is some C# code to create a shortcut to a folder. These are actually .lnk files which are handled in a special way by Windows Explorer.
First include a reference to C:\Windows\System32\wshom.ocx
Second include the following using statement
using IWshRunTimeLibrary;
Third here is the code
//this creates a folder shortcut
IWshShell wsh = new WshShellClass();
IWshShortcut shortcut = (IWshShortcut) wsh.CreateShortcut (shortcutpathfilename);
shortcut.TargetPath = targetdir;
shortcut.save();
But here
in the above code Iwshshell it is not defaulty coming in code part.
Why please help me.please send the code.
Rgds,
Narasiman P
Reply
Answers (
0
)
mysql connection time out expired?
How can i print text on bank cheque in csharp