Not really sure what's going wrong here.
The command im using is:
"C:\Program Files\FileBot\filebot.cmd" -rename "G:\Downloads\" --format "G:\TV\{n}\Season {s}\{n} Season {s} Episode {e} {t}"
IOException: The filename, directory name, or volume label syntax is incorrect
java.io.IOException: The filename, directory name, or volume label syntax is inc
orrect
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Unknown Source)
at java.io.File.getCanonicalPath(Unknown Source)
at java.io.File.getCanonicalFile(Unknown Source)
at net.sourceforge.filebot.cli.ArgumentBean.getFiles(Unknown Source)
at net.sourceforge.filebot.cli.ArgumentProcessor.process(Unknown Source)
at net.sourceforge.filebot.Main.main(Unknown Source)
Failure (░_░)
Evo wrote:
"C:\Program Files\FileBot\filebot.cmd" -rename "G:\Downloads\" --format "G:\TV\{n}\Season {s}\{n} Season {s} Episode {e} {t}"
Try it without the backslash on your downloads directory.
So, "C:\Program Files\FileBot\filebot.cmd" -rename"G:\Downloads"--format "G:\TV\{n}\Season {s}\{n} Season {s} Episode {e} {t}"
Ok, it appeared to work. Still got a load of Java.IO exceptions but the renaming worked.
BTW: Any way to create an event log entry or firing off an email to say "TV Show Name, Season 1 Episode 1 has been added to the library" or something similar?
Depends, what IO Exceptions do you get? What does it say? Or is it just warnings?
Well, you can do all kinds a stuff via FileBot/Groovy scripting. The rename() function will return the destination paths. Maybe you can do like a sendmail with that.
Something like that, but I have no idea how to create windows log entries or cmds to send email from windows. If you find a solution for that then it's on problem to combine that with FileBot/Groovy scripting.
Some HTPC software like XBMC allows other apps to talk to it via telnet or http requests. Scripting supports that as well, check the last view lines of the sorty.groovy sample script.
Like I said, with scripting you can do pretty much anything, but you have to find a working solution yourself... btw what is the purpose of these notifications? Kick-off some other application?
Cause if you just wanna check the rename history. Why don't you just use FileBot?? GUI/CLI all log to the same xml file. And you can check it in the Rename History Viewer in the GUI app.
Yep it works for me. Make sure you're running it as admin.
Its easy enough to create an event
C:\Users\A185306>eventcreate /l APPLICATION /so Filebot /t Information /id 431 /
d "The program {PROGRAM NAME} - {SEASON} {EPISODE} has been added to the library"
The only problem is that Filebot would have to support the ability to pass the variables in { } to a command line. Not sure if this is something that can be done?
Newer versions of FileBot fail immediately if you pass in bad parameters. Older versions may accept invalid parameters and kinda work kinda not work depending on various other parameters.