Batchfile for deleting recursive all 0 byte f

October 9, 2009 at 11:28:58
Specs: Windows XP
I try to create a batch file,which MOVES (sorry for the wrong word in the topic,but it seems I cant change that anymore :( ) all (empty) 0 byte files within a directory and all its subdirectories to another specified directory.

I tried putting together a few part solutions I read here,but its never working :(
help is greatly appreciated !


See More: Batchfile for deleting recursive all 0 byte f

Report •


#1
October 9, 2009 at 11:38:40
@echo off & setLocal EnableDELAYedExpansion

for /f "tokens=* delims= " %%a in ('dir/b/s/a-d') do (
if %%~Za equ 0 move %%a d:\dest
)


=====================================
Helping others achieve escape felicity

M2


Report •

#2
October 9, 2009 at 14:50:50
works like a charm !

you might hear this often =>THANKS A LOT !:-))


Report •

Related Solutions


Ask Question