createLinks

버전 1.0.0.1 (2.34 KB) 작성자: Brett Shoelson
Create Windows shell link (.LNK) shortcuts, given a specified file format
다운로드 수: 484
업데이트 날짜: 2016/9/1

라이선스 보기

SYNTAX:
createLink(filterspec,startDirName,...
recurse,linktoDirName)
creates Windows shell link (.lnk) shortcuts to files specified by extensions in filterspec, for files in directory startDirName, including or excluding subdirectories, and writing links to directory linkToDirName.

INPUTS:
filterspec:
a cell array of extensions to include. Specify filterspec as: {'*.ext1';'*.ext2';'*ext3';...;'*.extn'}.

(NOTE: See help for UIGETFILE for a
discussion of filterspec.)

startDirName: the top-level directory from which to start searching for files to link. Default = pwd;

recurse: Logical (t/f); do you want to recurse (include sub-directories)? Default = false;

linkToDirName: The name of the directory in which you want to put the shortcuts. Default = pwd.

EXAMPLES:
Example 1: To create, in the current directory, links to all JPG or TIFF files in the current directory:

createLinks({'*.jpg';'*.jpeg';'*.tif';'*.tiff'})

Example 2: To create links to all files of type *.m in directory 'c:\mfiles', recursively, and place the links in directory 'c:\myMfileLinks':

createLinks({'*.m'},'c:\mfiles',true,'c:\myMfileLinks')

NOTE: To EXTRACT the target name from the links, file getTargetFromLink might be useful. (It is available on the MATLAB Central File Exchange.)

인용 양식

Brett Shoelson (2024). createLinks (https://www.mathworks.com/matlabcentral/fileexchange/34948-createlinks), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2011b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Search Path에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.1

Updated license

1.0.0.0