Launch External Program

Windows specific questions, problems.
Post Reply
bjd223

Launch External Program

Post by bjd223 »

Hello,

Does anyone know if qBittorrent has changed how it handles launching external apps after a torrent completes.

On my system my script is running, as I have a powershell script that has a custom tray icon, however the actual powershell window is not being shown.

Does qbittorrent hide external script windows now, or is something else going on with my machine?
KitKat

Re: Launch External Program

Post by KitKat »

it runs cmd /c <your commandline>

the /c flag likely prevents your powershell script showing.
bjd223

Re: Launch External Program

Post by bjd223 »

Well unfortunately I have an interactive shell script, so it not showing is an issue. Hopefully they put in a toggle to restore the old behavior. Unfortunately back yo uTorrent 2.2.1.
User avatar
Peter
Administrator
Administrator
Posts: 2700
Joined: Wed Jul 07, 2010 6:14 pm

Re: Launch External Program

Post by Peter »

Wrap it in a cmd that opens your script?
... lol
Joh

Re: Launch External Program

Post by Joh »

I think it's powershell security. In Dec there was an upgrade.
First off, I use uTorrent but thinking about using qBittorent.
My psi stopped working in Dec. I changed the -executionpolicy to 'bypass' and the psi started working again.  I was using 'remotesigned' What I use is:

      powershell.exe -noprofile -executionpolicy bypass -windowstyle hidden "& 'C:\Users\XXXX\utorrent.ps1' -FileName '%F' -FileDir '%D' -FileTitle '%N' -Kind '%K'"

Sorry if this doesn't work in qBittorrent.
Last edited by Joh on Wed Jan 18, 2017 8:12 pm, edited 1 time in total.
Post Reply