Moderator message from: white » 2022-09-02, 07:23 UTC
Thread still contains issues to be fixed.
ghisler(Author) wrote: 2022-09-01, 08:26 UTC Sorry, I will not change this at this time. Maybe in a later version.
Moderators: Hacker, petermad, Stefan2, white
Moderator message from: white » 2022-09-02, 07:23 UTC
ghisler(Author) wrote: 2022-09-01, 08:26 UTC Sorry, I will not change this at this time. Maybe in a later version.
Weird, but can't be helped.ghisler(Author) wrote: 2022-09-02, 07:58 UTC I will move this to "will not be changed" because I don't see a way to fix this.
1. A search for "c:\test\trailing space " or "c:\test\trailing space \" (without the quotes) with FindFirstFile returns the right file details
2. A search for "\\?\c:\test\trailing space " or "\\?\c:\test\trailing space \" (without the quotes) with FindFirstFile returns error 53, ERROR_BAD_NETPATH
So it seems that FindFirstFile doesn't work when the file has both the \\?\ prefix and a trailing space.
What about the current dir getting prepended to the filename in the error?white wrote: 2022-08-31, 20:19 UTC Quotes are not supported, but messes up the errorPerhaps it is easiest to also support quotes around the entire name and strip them when you read the file. In that case also trim leading and trailing spaces outside the quoted filename.Code: Select all
"test1.txt" (error is OK: "test1.txt") "c:\test\test1.txt" (error is: test1.txt") "\\?\c:\test\test1.txt" (error is: c:\test\"\\?\c:\test\test1.txt")
Another case:Code: Select all
\\?\c:\test\test1.txt (error is: c:\test\ \\?\c:\test\test1.txt")
Found a waywhite wrote: 2022-09-02, 08:49 UTCWeird, but can't be helped.ghisler(Author) wrote: 2022-09-02, 07:58 UTC I will move this to "will not be changed" because I don't see a way to fix this.
1. A search for "c:\test\trailing space " or "c:\test\trailing space \" (without the quotes) with FindFirstFile returns the right file details
2. A search for "\\?\c:\test\trailing space " or "\\?\c:\test\trailing space \" (without the quotes) with FindFirstFile returns error 53, ERROR_BAD_NETPATH
So it seems that FindFirstFile doesn't work when the file has both the \\?\ prefix and a trailing space.
Code: Select all
\\?\c:\test\*"trailing space "
white wrote: 2022-08-31, 20:19 UTC Perhaps it is easiest to also support quotes around the entire name and strip them when you read the file. In that case also trim leading and trailing spaces outside the quoted filename.
Tested using TC10.52rc1.HISTORY.TXT wrote: 05.09.22 Fixed: LOADLIST command: Support double quotes around names in the list, e.g. when it contains spaces (32/64)
Code: Select all
c:\test\test1.txt"