|
-
May 6th, 2005, 02:31 AM
#1
Thread Starter
Sleep mode
Retrieve an internet shortcut target ?[Resolved]
Is there a working code that does this ? I found few examples but they don't seem to work . I'd prefer not to use any COM Interop .
Thanks
Last edited by Pirate; May 6th, 2005 at 03:01 AM.
-
May 6th, 2005, 03:01 AM
#2
Thread Starter
Sleep mode
Re: Retrieve an internet shortcut target ?[Resolved]
-
May 6th, 2005, 07:30 AM
#3
Hyperactive Member
Re: Retrieve an internet shortcut target ?[Resolved]
It would be nice if you could post the code, for future searchers!
Keep Smiling - even if its hard 
Frankie Says Relax, wossname Says Yeah!
wossname:--Currently I'm wearing a gimp suit and a parachute.
C# - Base64 Blog
-
May 6th, 2005, 08:18 AM
#4
Re: Retrieve an internet shortcut target ?[Resolved]
For future reference a .url file is just an ini file
Code:
[InternetShortcut]
URL=http://www.vbforums.com
-
May 6th, 2005, 10:01 PM
#5
Thread Starter
Sleep mode
Sure , it's easy like this :
Code:
private string ParseURL (string URLFile)
{
string url="";
if (File.Exists(URLFile))
{
StreamReader sr=new StreamReader(URLFile);
while (sr.Peek() != -1)
{
if (sr.ReadLine().StartsWith("[InternetShortcut]"))
url=sr.ReadLine();
}
sr.Close();
}
return url;
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|