Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Wishlist] Run multiple external programs on torrent completion, separated by semicolons #3998

Closed
UgurGumushan opened this issue Oct 26, 2015 · 4 comments

Comments

@UgurGumushan
Copy link

I run antivirus on completed files by using
C:/Program Files (x86)/Avira/Antivirus/avscan.exe /PATH=%f
But I would also like to run defrag on the same folder too.

I could create a batch file for this I don't even know if bat files support parameters yet. But It would be useful if I either could enter multiple lines on that box
or enter multiple destinations separated by semicolons.

@chrishirst
Copy link
Contributor

bat files support parameters yet

they have done since the dawn of DOS.
Use %1 ... %n to use the command line parameters in a batch file and separate the parameters with a space. (%0 is the script path and file name) and parameters with spaces in the string MUST be wrapped in quote marks ("")

echo %3, %2, %1. Go! in a batch file (script.bat) that was called with 'script.bat one two three' will output 'three, two, one. Go|' to the command prompt window.

@sledgehammer999
Copy link
Member

To run a batch script you need to call cmd.exe with a switch pointing to your batch file. Not your batch file directly. It will not run.
Any serious antivirous would scan the files WHILE qbt writes them to disk AND when you try to read/execute them.
If you're worried about fragmentation, just choose "preallocate diskspace for all file" from the settings.
@qbittorrent/qbittorrent-frequent-contributors is it worth it implementing this?

@Chocobo1
Copy link
Member

Chocobo1 commented Nov 2, 2015

I could create a batch file for this

Or you could code a script in python, might be easier.

is it worth it implementing this?

From my lazy point of view, it's worth only when other (popular) torrent client supports it.

@glassez
Copy link
Member

glassez commented Nov 2, 2015

IMO, This is another piece of fat to make the program more bloated. This is easily solved using a script or batch file.

@qbittorrent qbittorrent locked and limited conversation to collaborators Feb 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants