I thought I would post some additional information that wasn't completely obvious to me in hope that it might help some others wanting to use dirmon2.
First of all, you don't need to use a wild card character to configure dirmon2 for partial matches. Just simply enter the string of characters in the field that you want the partial match setup for, so no need for an asterisk. As an example, WMC names the TV show files with the show name and network name. If I have a comskip.ini file specifically configured for modern family, I can create a new job and put "modern family" in the target field, and change the radio button to entire file path.
Next, there are some environment variables that I found for the program. Below, the variable is listed first, and the output for the example given is shown second.
Code: Select all
Example filename: D:/TV/Nova.mpg
%FULLFILESPEC% - D:/TV/Nova.mpg
%DRIVE% - D
%PATH% - D:/TV
%DIRECTORY% - TV
%BASENAME% - Nova
%EXTENSION% - mpg
Example filename: D:/Nova.mpg
%FULLFILESPEC% - D:/Nova.mpg
%DRIVE% - D
%PATH% - D:
%DIRECTORY% -
%BASENAME% - Nova
%EXTENSION% - mpg
Example filename: //Media/TV/Nova.mpg
%FULLFILESPEC% - //Media/TV/Nova.mpg
%DRIVE% - //Media/TV
%PATH% - //Media/TV
%DIRECTORY% -
%BASENAME% - Nova
%EXTENSION% - mpg
Example filename: //Media/TV/SageTV/Nova.mpg
%FULLFILESPEC% - //Media/TV/SageTV/Nova.mpg
%DRIVE% - //Media/TV
%PATH% - //Media/TV/SageTV
%DIRECTORY% - SageTV
%BASENAME% - Nova
%EXTENSION% - mpg
The variable has to be enclosed in double brackets, so in the target field I would use [[%basename%]] and that would translate to Nova in the example given. You cannot nest the variables, but you can string them. As an example, I could use [[%basename%.%extension%]] to get nova.mpg.
I am using the %basename% variable, so dirmon2 passes the filename to a vbscript I created. PBS really doesn't have any commercials, so I don't want to bother processing them. I could put the network in the ignore list, but that would cause the dtb addin to issue a popup saying the commercial file is missing. So I created a new job to look for the name of my local PBS network, and I created a vbscript to write an empty XML file, so that the popup doesn't appear in WMC that the commercial file is missing. My script reads in the argument that dirmon2 passes, and then I use that to create the file with the appropriate name.
Hopefully this helps anyone that wants to do more with dirmon2 than just simply checking for new files. All this functionality was in dvrmstoolbox, and it appears that most if not all of that functionality can be accomplished in dirmon2 with the write steps albeit a little less elegantly. You can even create rules based on the details that are embedded in the file, like channel number, HDTV content, rerun, etc.