473,320 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

The target error of lnk file

yxq
Hello
I use the
code(http://www.msjogren.net/dotnet/eng/s..._shelllink.asp) to get
the LNK file target, but i found some
error. If i have installed two OS (A and B, on two partition C:\ D:\), when
i login A OS, i want to get the lnk file target(D:\Documents and
Settings\MyName\Start Menu\Programs\WinRAR\WinRAR.lnk) in the other one OS,
but the code return the path "C:\Program Files\WinRAR\WinRAR.exe", but
actually the path should be "D:\Program Files\WinRAR\WinRAR.exe"!

How to correct the error?

Thanks
Nov 20 '05 #1
4 2022
See my answer on my other two messages
Nov 20 '05 #2
See my answer on my other two messages
Nov 20 '05 #3
* "yxq" <ga***@163.net> scripsit:
code(http://www.msjogren.net/dotnet/eng/s..._shelllink.asp) to get
the LNK file target, but i found some
error. If i have installed two OS (A and B, on two partition C:\ D:\), when
i login A OS, i want to get the lnk file target(D:\Documents and
Settings\MyName\Start Menu\Programs\WinRAR\WinRAR.lnk) in the other one OS,
but the code return the path "C:\Program Files\WinRAR\WinRAR.exe", but
actually the path should be "D:\Program Files\WinRAR\WinRAR.exe"!


Maybe the shell link file stores to full path which points to the file
on the C drive. Have a look at the methods of 'System.IO.Path' for
paths manipulations.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4
* "yxq" <ga***@163.net> scripsit:
code(http://www.msjogren.net/dotnet/eng/s..._shelllink.asp) to get
the LNK file target, but i found some
error. If i have installed two OS (A and B, on two partition C:\ D:\), when
i login A OS, i want to get the lnk file target(D:\Documents and
Settings\MyName\Start Menu\Programs\WinRAR\WinRAR.lnk) in the other one OS,
but the code return the path "C:\Program Files\WinRAR\WinRAR.exe", but
actually the path should be "D:\Program Files\WinRAR\WinRAR.exe"!


Maybe the shell link file stores to full path which points to the file
on the C drive. Have a look at the methods of 'System.IO.Path' for
paths manipulations.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Barry Young | last post by:
I have Access 2000 installed on a machine and I create the MDE just fine. When I copy the MDE file over to another machine that has Access 2000 installed, the references are hosed and I get unable...
2
by: darrel | last post by:
I've written a function that will upload a file. This sort of works. It works sometimes, and then other times...namely when it tries to write to an existing directory (but not always), I get this...
0
by: yxq | last post by:
Hello I use the code in accessories to get the LNK file target, but i found some error. If i have installed two OS (A and B, on two partition C:\ D:\), when i login A OS, i want to get the lnk...
0
by: yxq | last post by:
Hello I use the code(http://www.msjogren.net/dotnet/eng/samples/dotnet_shelllink.asp) to get the LNK file target, but i found some error. If i have installed two OS (A and B, on two partition C:\...
17
by: asearle | last post by:
Hallo everyone, After playing around with 'fork' in order to try to get a one process to monitor another, I have changed my tack and switched to Win32::Process. Indeed, it looks like this...
1
by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post by:
I get the above error in some of the ASP.NET web applications on a server, and I need some help figuring out how to deal with it. This is a rather long post, and I hope I have enough details that...
8
by: Joe Withawk | last post by:
I have a solution consisting of a c# project as win application and a c++ project as classlibrary. Both are .net 2.0 The classlibrary handles some loading of quicktime movies, but that should not...
2
by: =?Utf-8?B?U3dhcHB5?= | last post by:
hi, I am working on application in this i am using two files. In first (consider A) file i am calling the function of other file (consider B). In that function of file B i am calling the method...
2
by: Jeff Dege | last post by:
I have a VS2005 Web Site that's giving me some trouble. Our process model requires that all shipped applications be compiled on a dedicated compile box, straight from version control, without...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.