Page 1 of 1

[Solved] Run a external program python script

Posted: Wed Nov 28, 2012 8:00 pm
by firecore
I have writte a small python script that only copys the file if certen conditions are meet. Its working fine if i use write the parameters in cmd. But i cant get it to work when the torrent finishes, even if the same parameters are passed.

I have written: C:\path\to\script\file.py "f" "n" in qbittorent.

Any tips?

Solution:
I feel so stupid...

path/to/python.exe path/to/script.py parameters.

Re: Run a external program python script

Posted: Wed Nov 28, 2012 11:05 pm
by tekko
I don't know scripting, but perhaps...

C:\path\to\script\file.py "%f" "%n"  ?

Re: Run a external program python script

Posted: Thu Nov 29, 2012 1:03 pm
by firecore
I have tried that, it didnt work. Ill to to make some bat file to just output the script to txt for debugging.