[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/biz/ - Business & Finance

Search:


View post   

>> No.50514352 [View]
File: 14 KB, 618x220, asdas.png [View same] [iqdb] [saucenao] [google]
50514352

>>50512664
I hope you don't mind me copying those two lines to make it 13 digits. I'm removing the namefile recovery and "ok" confirm prompt to make it more friendly to run on background. Also stripping away useless shit like the prepend trash. Now it's purely the rename.

@ECHO OFF
REM Randomly renames every file in a directory.
SETLOCAL EnableExtensions EnableDelayedExpansion
FOR /F "tokens=*" %%A IN ('DIR /A:-D /B') DO (
IF NOT %%A==%~nx0 (
SET Use=%%~xA
SET NewName=1!RANDOM!!RANDOM!!RANDOM!!RANDOM!!RANDOM!
SET NewName2=!NewName:~0,13!
SET NewName2=!NewName2!!USE!
ECHO !NewName2!
RENAME "%%A" "!NewName2!"
)
)

picrel in case 4chan doesn't like the spacing

Navigation
View posts[+24][+48][+96]