By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,239 Members | 1,503 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,239 IT Pros & Developers. It's quick & easy.

how to remove a specific file from the window recent file

P: n/a
Hello
How can we remove a specific file from the window recent file list
through vb.Net.

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Try deleting <file name>.lnk from C:\Documents and Settings\<your user
name>\Recent

Environment.GetFolderPath(Environment.SpecialFolde r.Recent) will give the
above path.

"satyaprakash47" <sa************@rediffmail-dot-com.no-spam.invalid> wrote
in message news:41**********@Usenet.com...
Hello
How can we remove a specific file from the window recent file list
through vb.Net.
Nov 21 '05 #2

P: n/a
* sa************@rediffmail-dot-com.no-spam.invalid (satyaprakash47) scripsit:
How can we remove a specific file from the window recent file list
through vb.Net.


Untested:

\\\
System.IO.File.Delete(System.IO.Path.Combine(Syste m.Environment.GetFolderPath(Environment.SpecialFol der.Recent), "foo.lnk"))
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.