maint: add utility file for qbitorrent command line
This commit is contained in:
		
							
								
								
									
										17
									
								
								add_torrents.bat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								add_torrents.bat
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| @echo off | ||||
| setlocal enabledelayedexpansion | ||||
|  | ||||
| :: Set the directory where your torrent files are located | ||||
| set "TORRENT_DIR=torrents" | ||||
|  | ||||
| :: Change to the directory containing the torrent files | ||||
| cd /d "%TORRENT_DIR%" | ||||
|  | ||||
| :: Loop through each .torrent file in the directory | ||||
| for %%f in (*.torrent) do ( | ||||
|     echo Adding %%f | ||||
|     qbt torrent add file "%%f" | ||||
| ) | ||||
|  | ||||
| echo All torrents have been added. | ||||
| pause | ||||
		Reference in New Issue
	
	Block a user