Dart
Dart
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 Dart Downloads
import 'package:chilkat/chilkat.dart';
void main() {
final fac = CkFileAccess();
final String targetPath;
try {
targetPath = fac.symlinkTarget('qa_data/my_shortcut');
} on ChilkatException {
print('Failed to get shortcut target.');
return;
}
print('target path = $targetPath');
}