Page 1 of 1

Getting error with CMD\Right Click

Posted: 03 Feb 2019, 19:14
by esullivan
Trying to set up a right click to run filebot. When doing so I get this error and it will not work. Suggestions? This is what I am doing:

Code: Select all

%ProgramFiles%\FileBot\filebot.exe -rename -r "%FILENAME1%" --db IMDB --format "E:\Videos\4k\{n.replaceFirst(/^(?i)(The|A|An)\s(.+)/, /$2, $1/)}" -non-strict
Image

Re: Getting error with CMD\Right Click

Posted: 03 Feb 2019, 21:05
by rednoah
The first line of the console output tells us that you're instructing FileBot to process a file called FILENAME1 which probably isn't what we mean to do, so that's our first clue, and leads us to learn more about how CMD and CMD scripts work.


In related news, this Context Menu example should work out of the box:
viewtopic.php?f=3&t=1053

Re: Getting error with CMD\Right Click

Posted: 03 Feb 2019, 21:07
by esullivan
That should be right. Again it's for a right click menu, so that's the variable for the file name I right click on. Looking at the top lines, it's getting the right file name so that part should be right

Re: Getting error with CMD\Right Click

Posted: 03 Feb 2019, 21:08
by esullivan
Oh wait......I see that in there now. That might be a start.

Re: Getting error with CMD\Right Click

Posted: 03 Feb 2019, 21:13
by esullivan
Damn that was it! Supposed to be %1% instead. Thanks!!!