Search found 1 match

by TB99
16 Jul 2012 18:29
Forum: DOS Batch Forum
Topic: Rename files and folders to random names
Replies: 10
Views: 8916

Re: Rename files and folders to random names

C:\test>type randomname.bat @echo off cd c:\test\ dir /b ab*.txt > testdata.txt type testdata.txt for /f %%i in ( testdata.txt) do ( echo copy %%i %%i%random%.txt echo ren %%i %%i%random%.txt ) C:\test> randomname.bat abc.txt abc2.txt copy abc.txt abc.txt15611.txt ren abc.txt abc.txt23205.txt copy ...