Author Topic: function IsFolder not working with long path in windows 10  (Read 13436 times)

hlhp

  • Junior Member
  • **
  • Posts: 24
    • View Profile
multi-script function IsFolder https://bit.ly/3pZJ1Uy
seems not working with long path in windows 10

AlanJB

  • VIP Member
  • *****
  • Posts: 436
  • VERY old Programmer
    • View Profile
Re: function IsFolder not working with long path in windows 10
« Reply #1 on: July 24, 2023, 15:44:31 »
How long is the path?  Is it in double quotes?

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4484
    • View Profile
    • Multi Commander
Re: function IsFolder not working with long path in windows 10
« Reply #2 on: July 24, 2023, 16:04:04 »
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
« Last Edit: July 24, 2023, 16:06:50 by Mathias (Author) »

hlhp

  • Junior Member
  • **
  • Posts: 24
    • View Profile
Re: function IsFolder not working with long path in windows 10
« Reply #3 on: July 25, 2023, 10:37:39 »

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

thank you, it works :)