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
Sushant Shinde
NA
182
11.6k
How to check shortcut file is exists on User desktop by C#?
Mar 21 2016 6:32 AM
I want to check shortcut of any installed software on user desktop is exists or not by C# programmatically. If exists then I want to change the rename of that shortcut. How to do this?
I tried this code to find shortcut but it's not well working. Shortcut file is exists but it displays "Shortcut File not found"
string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
string shortcutfile = desktopPath + "\\Mozilla Firefox.lnk";
if (File.Exists(shortcutfile))
{
MessageBox.Show("Shortcut File found");
}
else
{
MessageBox.Show("Shortcut File not found");
}
Reply
Answers (
3
)
how to return datatable in one page to another page load
Write an application that allows a user to input the height