Labels

January 7, 2016

Reading a File Name and Display its Name

Just copy the file and read the clipboard:

Send,{ctrl down}c{ctrl up} ;to copy the file/folder path
ClipWait
FileFullPath=%Clipboard%  ;stores the clipboard in FileFullPath
SplitPath,FileFullPath, name, dir, ext, name_no_ext, drive
MsgBox, ,Selected file,The selected file is %name%

No comments: