munch9000 Posted September 4, 2012 Report Share Posted September 4, 2012 I use filebot to rename and organize my tv show and movie torrents after they have finished downloading. This works wonderfully with uTorrent's run program after torrent finishes feature. The only problem is that if I'm watching something on the same computer (via XBMC) and a torrent finishes downloading...it will spawn a new cmd window for Filebot to do it's thing....and minimize whatever I'm watching. I am pretty sure at some point filebot used to launch without a cmd window...but I posted on the filebot forum and the creator said that was never the case for him...so perhaps I was imagining it..haha. Is there any easy way to tell utorrent to launch a program in the background, or if it must launch a terminal...do so without it minimizing XBMC. Thanks in advance for your help! Link to comment Share on other sites More sharing options...
ciaobaby Posted September 5, 2012 Report Share Posted September 5, 2012 Try putting your command line in a .vbs file (Windows Scripting Host) then run that from the torrent client. Dim WshShell Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run "command line goes here", 1 Link to comment Share on other sites More sharing options...
rafi Posted September 7, 2012 Report Share Posted September 7, 2012 Why not just put *any* program exe/parameters in the "run program" edit-line. Link to comment Share on other sites More sharing options...
ciaobaby Posted September 8, 2012 Report Share Posted September 8, 2012 Why not just put *any* program exe/parameters in the "run program" edit-line.???I'm not with you there? Link to comment Share on other sites More sharing options...
rafi Posted September 8, 2012 Report Share Posted September 8, 2012 ???I'm not with you there? Link to comment Share on other sites More sharing options...
ciaobaby Posted September 9, 2012 Report Share Posted September 9, 2012 Right? Still not seeing where "any" comes into it.The TS wants to stop the command prompt (DOS) window from appearing. Simply routing the output of a command (command >> nul) does not suppress the window, the only method that I have ever used successfully on the rare occasions I have needed to, is to 'proxy' the command window using WSH (Windows Scripting Host). Using Linux command > dev/null would work, but the DOS equivalent of command >> NUL does not suppress the command window from popping up. Link to comment Share on other sites More sharing options...
rafi Posted September 9, 2012 Report Share Posted September 9, 2012 "notepad.exe" above is an example of "any"... Link to comment Share on other sites More sharing options...
ciaobaby Posted September 9, 2012 Report Share Posted September 9, 2012 Yes, sure, BUT simply putting a command line in there will cause the command prompt window to show, which is what the TS is trying to avoid happening.Is there any easy way to tell utorrent to launch a program in the background, or if it must launch a terminal...do so without it minimizing XBMC. So the path to, and the .vbs filename with the Windows Shell commands is what goes in the torrent client "Run program" field. Link to comment Share on other sites More sharing options...
truglx Posted September 27, 2012 Report Share Posted September 27, 2012 This trick might work to prevent the cmd window from stealing focus:cmd.exe /c start /min COMMAND ^& exitLike this:http://filebot.sourceforge.net/forums/viewtopic.php?f=4&t=215#p1963 Link to comment Share on other sites More sharing options...
truglx Posted October 1, 2012 Report Share Posted October 1, 2012 Even better! Generic vbscript that can run any command in a hidden cmd:http://filebot.sourceforge.net/forums/viewtopic.php?f=4&t=215&p=2024#p2024 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.