Hi Quade,
I've written a small post-unrar script with Autohotkey which validates if all files from Output.txt are present in the Unrar-Folder.
If not, it displays a modal message so it doesn't exit, Newsbin doesn't delete the source files and I get the chance to manually unrar the download.
- Code: Select all
Loop, Read, C:\Users\USERNAME\AppData\Local\Newsbin\Scripts\Output.txt
{
if not FileExist(A_LoopReadLine)
{
MsgBox, %A_LoopReadLine%
break
}
}
It works well but then I noticed that FileExist() returns false for these files with long filenames even if they do exist!!!
I looked into it and in the end I found
https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry After setting
- Code: Select all
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
"LongPathsEnabled"=dword:00000001
as described in the article FileExist() now works as expected.
Maybe you want to look into this article.
Best regards,
billy