Friday, 15 August 2014

For loop that will not fetch Thumbs.db files -


I want to create a script which will not bring the thumbs.db file from a folder location. I have created a script but when I'm playing a four loop, then in that thumb. The DB file is also visible in the list.

Here is the relevant part of the script:

 for  / f "tokens = *" in %% ('dir / ad / b'% src_dir% *. * '') (Echo %% G & gt; & gt;% save_file%)  

thanks

Maybe you can only check inside the loop?

  FOR %% x IN (*. *) DO (If not "%% x" == "thumb DB" (ECHO %% x))  

No comments:

Post a Comment