Last Modified: October 30 2020 14:33:16
File: root - programs - 80x86_batch - 2008 - 5 - r.bat
File Size: 0.99KB
@echo off
set cc=0
set dd=1
set od=%1
set td=%2
set nn=%3
set ex=jpg
cls
echo.
echo Windows XP Batch file
echo Created by Zhihua Lai, 2007-Aug-30
echo The program can move all the %ex% files in %od% folder into
echo %td% folder and rename it by number
echo each folder (also labeled as number %dd% var) contains at most
echo %nn% pictures....
echo.
echo Press any key to continue, press Ctrl-C to exit....
pause >nul
rem cls
if not exist %td% mkdir %td% && echo %td% created...
for /f "usebackq delims==" %%i in (`dir /s /b %od%\*.%ex%`) do (
call :dothing "%%i"
)
goto :clear
:dothing
if exist "%1\nul" goto :end
if not exist "%td%\%dd%" mkdir "%td%\%dd%" && echo "%td%\%dd%" created...
set /a cc=cc+1 >nul
move %1 "%td%\%dd%\%cc%.jpg"
echo %1 has been moved to "%td%\%dd%\%cc%.jpg"!!!!
if /i "%cc%" EQU "%nn%" set /a cc=0 && set /a dd=dd+1
goto :end
:clear
set cc=
set dd=
set od=
set td=
set nn=
set ex=
:end
©2006~2024 SteakOverCooked - 0.01778 Seconds(s) - 915.116 KB/s - 57 Online Memory: 470.44 KB
18:54:01 up 13 days, 18:33, 2 users, load average: 0.98, 0.86, 0.73 - Server PHP Version: 7.4.33
How to Cook a Perfect Steak? | <meta name="robots" content="noindex, follow" />
18:54:01 up 13 days, 18:33, 2 users, load average: 0.98, 0.86, 0.73 - Server PHP Version: 7.4.33
Comments (0)
Read & Write - Normal - Mini - Post - All Comments - Statistics
Be the first one to comment this page !