Objective-C
Objective-C
Get the Target of a Windows Shortcut
See more FileAccess Examples
Demonstrates how to get the target of a Windows shortcut.Note: This example requires Chilkat v9.5.0.77 or greater.
Chilkat Objective-C Downloads
#import <CkoFileAccess.h>
#import <NSString.h>
CkoFileAccess *fac = [[CkoFileAccess alloc] init];
NSString *targetPath = [fac SymlinkTarget: @"qa_data/my_shortcut"];
if (fac.LastMethodSuccess != YES) {
NSLog(@"%@",@"Failed to get shortcut target.");
return;
}
NSLog(@"%@%@",@"target path = ",targetPath);