[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: 1530059569597.png (451 KB, 666x584)
451 KB
451 KB PNG
I use an ancient version of utorrent but it has one disastrous bug. like .0015 of the time it'll randomly delete all your torrents by your user file corrupting. and there's no backups in this version

so I asked AI to make me a script to backup my utorrent daily. it actually works

@echo off

REM === CONFIG ===
set SRC=C:\Users\x\AppData\Roaming\uTorrent
set DEST=D:\Backups\uTorrent
set LOG=%DEST%\backup.log

REM === Get reliable date from PowerShell ===
for /f %%i in ('powershell -NoLogo -NoProfile -Command "(Get-Date).ToString(\"yyyy-MM-dd\")"') do set DATESTAMP=%%i

set TARGET=%DEST%\%DATESTAMP%

echo [%DATESTAMP% %TIME%] Starting backup... >> "%LOG%"
echo Target folder: "%TARGET%" >> "%LOG%"

robocopy "%SRC%" "%TARGET%" /MIR /R:1 /W:1 >> "%LOG%" 2>&1

REM Keep only 5 most recent backups
for /f "skip=5 delims=" %%i in ('dir "%DEST%" /ad /b /o-d') do (
echo [%DATESTAMP% %TIME%] Deleting old backup: %%i >> "%LOG%"
rd /s /q "%DEST%\%%i"
)

echo [%DATESTAMP% %TIME%] Backup completed. >> "%LOG%"
>>
I have to admit I almost fell for the bait
>>
>>107607525
what would this do?
>>
File: 1742491190770824.jpg (14 KB, 599x337)
14 KB
14 KB JPG
>>
File: urwaifu.jpg (607 KB, 2208x1595)
607 KB
607 KB JPG
>>107607510
I just used it to gen you're waifu being fucked
>>
File: utorrent_backup.png (77 KB, 846x1355)
77 KB
77 KB PNG
>>107607593
If there's bait in OP's script, GPT-OSS didn't find it.
>>
>>107607818
The bait is that he's doing this instead of just using qBittorrent



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.