(view source code of movepictures.bat as plain text)
@echo off
:: By Gordon Schumacher
setlocal
echo Moving pictures from camera...
for /f "tokens=1-7 delims=:/-, " %%i in ('echo exit^|cmd /q /k"prompt $D $T"') do (
for /f "tokens=2-4 delims=/-,() skip=1" %%a in ('echo.^|date') do (
set dow=%%i
set %%a=%%j
set %%b=%%k
set %%c=%%l
set hh=%%m
set min=%%n
set ss=%%o
)
)
for /D %%D in (D:\DCIM\*.) do (
for %%F in (%%D\*.jpg) do (
call:MOVEPIC %%F
)
)
endlocal
goto:EOF
:MOVEPIC
set picnum=0
:incrpic
set curfile=%yy%%mm%%dd%%picnum%-%~n1.jpg
if exist "%UserProfile%\My Documents\My Pictures\%curfile%" (
set /a picnum+=1
goto incrpic
)
echo Moving %1 to %curfile%...
move %1 "%UserProfile%\My Documents\My Pictures\%curfile%"
goto:EOF
page last modified: 2024-04-16; loaded in 0.0055 seconds