resolving Windows shortcuts
To resolve UNIX links to files you can use File::getCanonicalPath(). Is there a similar function for resolving Windows shortcuts? getCanonicalPath() and getAbsolutePath() always just return myFile.lnk instead of the path to myFile.
I am not executing any of these files just trying to read them into my system for testing purposes.
AFAIK, Windows shortcuts are just text files, similar in structure to .ini files. I don't have a Windows machine to hand to check that (I'm guessing you do, though), but if it's the case, you could just parse the shortcut for the actual path
Unfortunately, the restrictions on the program I am in do not allow for C++. I'd need to recreate the same stuff in Java. However, it surprises me that there isn't an easy way to do this.
> Unfortunately, the restrictions on the program I am
> in do not allow for C++. I'd need to recreate the
> same stuff in Java. However, it surprises me that
> there isn't an easy way to do this.
Java should be platform independent so I'm not surprised that you can't do it in an easy way.
kajbja at 2007-7-12 23:02:24 >
