Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Convert to short/long filename
#1
Have you got a function to do it?
#2
Code:
Copy      Help
dll kernel32 #GetShortPathName $lpszLongPath $lpszShortPath cchBuffer
dll kernel32 #GetLongPathName $lpszShortPath $lpszLongPath cchBuffer

str s.expandpath("$program files$\internet explorer\iexplore.exe")

str sshort.fix(GetShortPathName(s sshort.all(MAX_PATH) MAX_PATH))
out sshort

str slong.fix(GetLongPathName(sshort slong.all(MAX_PATH) MAX_PATH))
out slong
#3
Thanks
#4
for searching:
short filename path file name


Forum Jump:


Users browsing this thread: 1 Guest(s)