Prevent cmd from stealing focus
Posted: 24 Oct 2014, 14:06
Hello, I'm trying to prevent the cmd from stealing focus (both on uTorrent and on Folder Watcher) following this method, but without sucess.
Can someone explain it better please?
The cmd I use on the uTorrent is:
Already tried to change the filebot to filebot.launcher, filebot.launcher.exe, and the absolute paths to, C:/Program Files/FileBot/filebot.launcher, C:/Program Files/FileBot/filebot.launcher.exe. And none works...
Already tried to use the CHP too, but my programing skills arent the best, so I couldn't actually do anything with it.
Thanks in advance!
[Windows] Prevent cmd from stealing focus
If you're using this script with µTorrent on Windows you might find it annoying that it'll popup a cmd window stealing the focus each time.
Instead of using filebot.exe you can try using the GUI executable filebot.launcher.exe like this:
Code: Select all
filebot.launcher -script fn:amc --output "X:/path/to/media" --log-file amc.log --action copy --conflict override -non-strict --def "ut_dir=%D" "ut_file=%F" "ut_kind=%K" "ut_title=%N" "ut_label=%L" "ut_state=%S"
If you have PATH issues you try using the absolute path to the executable.
![]()
Alternatively you can create a hidden filebot process with this tool: http://www.commandline.co.uk/chp/
Can someone explain it better please?
The cmd I use on the uTorrent is:
Code: Select all
filebot -script fn:amc --output "D:/ViNiCiUS/Videos" --log-file amc.log --action copy --conflict override -non-strict --def subtitles=pb,en music=n artwork=n --def plex=ViNiCiUS-PC "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D" --def "seriesFormat=Seriados/{n.replaceTrailingBrackets()}/{n.replaceTrailingBrackets()} - {\"${s}ª Temporada\"}/{n.replaceTrailingBrackets()} - {s00e00} - {t}{\".$lang\"}" "movieFormat=Filmes/{n} ({y}){"Part$pi"}{\".$lang\"}"
Already tried to use the CHP too, but my programing skills arent the best, so I couldn't actually do anything with it.
Thanks in advance!