How do I get the file name of a media file from sabnzbd after it has been unrared so I can pass it to a batch file? For example, after completing a job, there is a file such as
Code: Select all
D:\Downloads\SABnzbd\complete\Some File S02E13 720p HDTV x264-AVS\some.file.s02e13.720p.hdtv.x264-avs.mkv
how do I get the full path and file name including extension into a windows batch file so that I can do things to that file, like rename it using phoenix-renamer? According to the help page at
https://sabnzbd.org/wiki/scripts/post-p ... ng-scripts , that doesn't seem to be one of the parameters that can be passed. Moreover, a test script seemed to run before the par check and unrar, which would mean the media file wouldn't even exist when the script was run.
I am using sabnzbd version 1.1.0 [8abcf08] on Windows 10 Home 64 bit version 1607 build 14393.187