PC Review


Reply
 
 
j4e8a16n
Guest
Posts: n/a
 
      11th Aug 2011
Hi everybody,

I have many images in a folder and I want to delete 4 files every
five files . That is to say keeping only one fift of the images
files.


set a=0
for /r %i in (*.png) do if %a% LSS 5 (set /a a+=1 & del "%i" ) else
(set /a a=0)

The variable a does not seem to be set to zero has if %a% keeps
increasing

Thanks for yur attention,

J
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:57 PM.