-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_editor.ps1
More file actions
27 lines (23 loc) · 891 Bytes
/
Copy pathrun_editor.ps1
File metadata and controls
27 lines (23 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# PowerShell script for qBittorrent Rule Editor
# This script has better Unicode support than batch files
Write-Host "Starting qBittorrent Rule Editor..." -ForegroundColor Green
# Check if Python is available
try {
$pythonVersion = python --version 2>&1
if ($LASTEXITCODE -ne 0) {
Write-Host "Error: Python not found. Please ensure Python is installed and added to PATH" -ForegroundColor Red
Read-Host "Press Enter to exit"
exit 1
}
Write-Host "Found: $pythonVersion" -ForegroundColor Yellow
}
catch {
Write-Host "Error: Python not found. Please ensure Python is installed and added to PATH" -ForegroundColor Red
Read-Host "Press Enter to exit"
exit 1
}
# Run the editor
Write-Host "Launching editor..." -ForegroundColor Green
python qb_rule_editor.py
Write-Host "Editor closed." -ForegroundColor Yellow
Read-Host "Press Enter to exit"