function IsFolder not working with long path in windows 10

Started by hlhp, July 24, 2023, 13:22:45

Previous topic - Next topic

hlhp

multi-script function IsFolder https://bit.ly/3pZJ1Uy
seems not working with long path in windows 10

AlanJB


Mathias (Author)

#2
Quote from: hlhp on July 24, 2023, 13:22:45
multi-script function IsFolder https://bit.ly/3pZJ1Uy
seems not working with long path in windows 10
Yes look like the script function is using the wrong internal method, and is not fall backing to retry with UNC path.. I will fix that for next release

It should work if you append "\\?\" before the path..  Window support long path for path using UNC path..   \\?\E:\Temp  instead of E:\Temp

hlhp

Quote from: Mathias (Author) on July 24, 2023, 16:04:04

append "\\?\" before the path..  Window support long path for path using UNC path..   \\?\E:\Temp  instead of E:\Temp

thank you, it works :)