How to transform in MS any given long path like
Code: Select all
H:\TEMP\New Folder\tes\1 2 3\xxx\New File.txt
Code: Select all
file:///H:/TEMP/New%20Folder/tes/1%202%203/xxx/New%20File.txt
Moderators: Dorian (MJT support), JRL
Code: Select all
H:\TEMP\New Folder\tes\1 2 3\xxx\New File.txt
Code: Select all
file:///H:/TEMP/New%20Folder/tes/1%202%203/xxx/New%20File.txt
Code: Select all
VBStart
VBEND
Let>LongPath=H:\TEMP\New Folder\tes\1 2 3\xxx\New File.txt
StringReplace>LongPath,\,/,LongPath
Length>LongPath,len
MidStr>LongPath,3,len,strSub
MidStr>LongPath,1,2,drive
VBEval>escape("%strSub%"),escStr
Let>Prefix=file:///
Let>URL=%Prefix%%drive%%escStr%
MessageModal>URL