use Path.Combine to create a absolute path
--
Sheng Jiang
Microsoft MVP in VC++
<re***********@gmail.comwrote in message
news:87**********************************@c29g2000 hsa.googlegroups.com...
On Nov 16, 4:20 pm, Mattias Sjögren <mattias.dont.want.s...@mvps.org>
wrote:
I'm trying to check whether a .lnk (LNK - Windows shortcut file)
exists. I can successfully create the lnk file and then go browse to
the folder and see the lnk file is there, but calling
File.Exists("test.lnk") fails. How can I do this?
Have you tried specifying the fully qualified file path?
Mattias
--
Mattias Sjögren [C# MVP] mattias @
mvps.orghttp://www.msjogren.net/dotnet/|
http://www.dotnetinterop.com
Please reply only to the newsgroup.
yeah. I used Directory.SetCurrentDirectory() to set the path so I
wouldn't have to type in the full path. But not running that and just
inserting the full path still results in the same failure.