batch file - dated dir structure, multi depth -
i new here, neither programmer or computer professional
i amateur photographer , create folder structure photos below , use bat file automate every new shoot.
2013-21-31_enter photo shoot info manually
2013-21-31_info above/2013-21-31_info above_jpg
2013-21-31_info above/2013-21-31_info above_tif
2013-21-31_info above/2013-21-31_info above_raw
2013-21-31_info above/2013-21-31_info above_bw
2013-21-31_info above/2013-21-31_info above_rejects
i appreciate help,
dettki
give whirl: if don't want current date date enter remove rem below.
@echo off /f "delims=" %%a in ('wmic os localdatetime ^| find "."') set "dt=%%a" set "yyyy=%dt:~0,4%" set "mm=%dt:~4,2%" set "dd=%dt:~6,2%" set "hh=%dt:~8,2%" set "min=%dt:~10,2%" set "sec=%dt:~12,2%" set datestamp=%yyyy%-%mm%-%dd% rem set /p "datestamp=enter date in yyyy-mm-dd format: " set /p "var=enter description: " %%a in (jpg tif raw bw rejects) md "%datestamp%_%var%\%datestamp%_%var%_%%a" pause
Comments
Post a Comment