Search found 22 matches

by Ben Mar
12 May 2015 15:08
Forum: DOS Batch Forum
Topic: Batch photo organizer
Replies: 15
Views: 4127

Re: Batch photo organizer

Namenick, give this a try: @echo off for %%z in (*.jpg) do ( exifread.exe -text "%%z" for /f "tokens=1-7 delims=: " %%a in (' type "%%~nz.txt" ^| find "DateTimeOriginal :" ') do ( if not exist "%%b-%%c-%%d" md "%%b-%%c-%%d" 2>nul move "...
by Ben Mar
11 May 2015 10:58
Forum: DOS Batch Forum
Topic: Batch remove first character of all text files in a folder
Replies: 2
Views: 2577

Re: Batch remove first character of all text files in a fold

Just try this: @echo off for %%a in (*.txt) do @( findrepl "^-" "" < %%a > %%~na.tmp del %%a ren %%~na.tmp %%a ) This uses a native Windows batch script called findrepl.bat (by aacini) It can also be found here: http://www.dostips.com/forum/viewtopic.php?f=3&t=4697 Place it i...
by Ben Mar
08 May 2015 15:44
Forum: DOS Batch Forum
Topic: Color Function 21 22 23c
Replies: 37
Views: 20213

Re: Color Function 21 22 23

Yes, with the new fixed, that bug is taken care of.

Thanks Carlos.
by Ben Mar
08 May 2015 15:40
Forum: DOS Batch Forum
Topic: Rename Folders YEAR-MON to YEAR-NN Via Single Command
Replies: 32
Views: 4500

Re: Rename Folders YEAR-MON to YEAR-NN Via Single Command

Both of these methods are untested, but unless I have made a silly error, they should work Pure batch: Doh Does not work because wildcard not allowed in REN targe name when renaming folders @echo off setlocal enableDelayedExpansion set m=0 for %%A in ( JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DE...
by Ben Mar
08 May 2015 13:14
Forum: DOS Batch Forum
Topic: Color Function 21 22 23c
Replies: 37
Views: 20213

Re: Color Function 21 22 23

I think I found a bug for version 23: For the character "^" it prints out double "^^" Unless I don't use any quotes and put double ^^ then it prints out one ^ @Echo Off rem this prints out 2 ^^ Call color23.cmd A "######" \n E "^" C " 21 " E "!&...
by Ben Mar
05 May 2015 19:53
Forum: DOS Batch Forum
Topic: Split Folder in multiple folders for size !!!
Replies: 29
Views: 5963

Re: Split Folder in multiple folders for size !!!

Try this to see if it's what you need. This is very basic and it's not doing the real optimization at all. @echo off if "%~1"=="" goto Help if "%~2"=="" goto Help if "%~3"=="" goto Help setlocal enabledelayedexpansion set "src=%~1"...
by Ben Mar
03 May 2015 11:02
Forum: DOS Batch Forum
Topic: Rename Folders YEAR-MON to YEAR-NN Via Single Command
Replies: 32
Views: 4500

Re: Rename Folders YEAR-MON to YEAR-NN Via Single Command

Since both "REN" and "MOVE" do not support wild card substitution, here is my work-around based on dbenham idea: @echo off setlocal enableDelayedExpansion set m=0 for %%A in ( JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC ) do for /d %%F in (????-%%A) do ( set /a m+=1 set "...