About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
See full specifications

scripts default icongetTargetFromLink (Scripts) Publisher's description

Extract the target of a Windows shell link shortcut (LNK)

Extract the target of a Windows shell link shortcut (LNK)
target = getTargetFromLink(lnkFile)
Creates the requisite actxserver, extracts the target.

[target,aserver] = getTargetFromLink(lnkFile) also passes out a handle to the Activex server object

[target,...] = getTargetFromLink(lnkFile,aserver) allows optional passing in of Activex server object. (If you are calling getTargetFromLink many times, it can be faster to create the Activex server object, aserver, one time, and pass it in. Otherwise, this is pretty fast.)

Example 1: Get a single target

links = dir('*.lnk');
target = getTargetFromLink(links(1).name)

Example 2: Get many targets, re-using the asvr (optional)

links = dir('*.lnk');
target = cell(numel(links),1);
[target{1},asvr] = getTargetFromLink(links(1).name);
for ii = 2:numel(links)-1
target{ii} = getTargetFromLink(links(ii).name,asvr);

Example 3: To get the link to a file not in the current directory, specify the fullfile to the link:

links = dir('c:myLinks*.lnk');
target = getTargetFromLink(fullfile('c:myLinks',links(1).name))

NOTES: To create links, file createLinks (available on the MATLAB Central File Exchange) might be useful.

System Requirements:

No special requirements.
Program Release Status: New Release
Program Install Support: Install and Uninstall

getTargetFromLink (Scripts) Tags:

Click on a tag to find related softwares

Is getTargetFromLink (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.