mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-03-02 22:57:32 -05:00
External Program Execution Fails Because rars are "being used by another process" #13137
Labels
No labels
Accessibility
AppImage
Bounty
Build system
CI
Can't reproduce
Code cleanup
Confirmed bug
Confirmed bug
Core
Crash
Data loss
Discussion
Docker
Documentation
Duplicate
Feature
Feature request
Feature request
Feature request
Filters
Flatpak
GUI
Has workaround
I2P
Invalid
Libtorrent
Look and feel
Meta
NSIS
Network
Not an issue
OS: *BSD
OS: Linux
OS: Windows
OS: macOS
PPA
Performance
Project management
Proxy/VPN
Qt bugs
Qt6 compat
RSS
Search engine
Security
Temp folder
Themes
Translations
Triggers
Waiting diagnosis
Waiting info
Waiting upstream
Waiting web implementation
Watched folders
WebAPI
WebUI
autoCloseOldIssue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/qBittorrent#13137
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jklassen on GitHub (Mar 1, 2022).
qBittorrent & operating system versions
qBittorrent: 4.4.1 (x64)
Windows 10 (10.0.1xxxx)
What is the problem?
I have a batch file that runs after a download is complete via the "Run external program on torrent completion"
but it fails with the following error (Changed the folder/file names):
Here is the batch file
"C:\Program Files\7-Zip\7z.exe" e "%1\*.rar" -o"%1\" >> "%SYSTEMDRIVE%\7z-logs.txt" 2>> %SYSTEMDRIVE%\7z-errors.txtHere is 7z-logs.txt:
and here is 7z-errors.txt:
Seems to me like there needs to be some kind of delay before this script is run.
MORE CONTEXT: I do not have any automatic file management in qbittorrent enabled.
Steps to reproduce
Running the batch works standalone. Fails when using the run after complete command in QBittorrent
Additional context
No response
Log(s) & preferences file(s)
No response
@jklassen commented on GitHub (Mar 1, 2022):
I added a
ping localhost -n 5in the batch file just before the line that executes 7zip and that fixed the file usage conflict. It's weird I need to do this but whatever, its not much of a workaround.@luzpaz commented on GitHub (Jun 11, 2023):
Related to #10206