Resolve$
Attempts to automatically resolve a shortcut and returns the resolved path,
or By default, this method acts quietly, but if you pass a value of 0 (zero) in the flag parameter, it will eventually post a dialog box prompting the user for more information. For example: # if the target doesn't exist... if(! -f $link->Path) { # save the actual target for comparison $oldpath = $link->Path; # try to resolve it (with dialog box) $newpath = $link->Resolve(0); die "Not resolved..." if $newpath == $oldpath; } |
|