Remove folder once it is empty!!!
Posted: 03 Apr 2010 06:34
hi everyone..
i need to remove certain folders once it is checked empty!!
what is the script to do that?
for example,
c:\reports\2008\*.doc
once all the files are moved to,
c:\reports\2010\*.doc
the bat will check whether the folder '2008' is empty or not,
if empty, delete the folder but if still got files even hidden one,
that folder will retain & display a msg showing that folder still got file exist in it!!
thanks!!
i need to remove certain folders once it is checked empty!!
what is the script to do that?
for example,
c:\reports\2008\*.doc
once all the files are moved to,
c:\reports\2010\*.doc
the bat will check whether the folder '2008' is empty or not,
if empty, delete the folder but if still got files even hidden one,
that folder will retain & display a msg showing that folder still got file exist in it!!
thanks!!