;Get file path ;v2 supports unc If 0 < 1 ExitApp filepath = %1% IfExist, %filepath% { StringLeft, First2, filepath, 2 if First2 = \\ { StringGetPos, pos, filepath, \, R1 StringLeft,MappablePath,filepath,pos RunWait, %comspec% /c net use * %MappablePath% > %a_temp%\getfilepath.txt FileRead, MappingOutput, %a_temp%\getfilepath.txt FileDelete, %a_temp%\getfilepath.txt StringMid, DriveLetter,MappingOutput,7,2 StringReplace, filepath, filepath, %MappablePath%,%DriveLetter% } clipboard = clipboard = %filepath% TrayTip, , File-path copied -`n %clipboard%, 15, 1 Sleep, 3500 } Return