hi there to all
a few month ago i asked about extracting and then deletion of compressed files and dear
RENO gaved me some good scripts.
below you can see my batch scripts
@echo off
setlocal enabledelayedexpansion
DIR /A-D /X *.rar | FIND "part" > listfile.txt
FOR /F "tokens=5" %%i IN (listfile.txt) DO unrar e %%i *.* && del "%%i"
but now i have another problem again !! well with my normal batch code i can unpack and delet all zip or rar files easily but problem occurs when we have multi part rar files look at example below
snoopdigitalmagno1.part1.rarsnoopdigitalmagno1.part2.rar
snoopdigitalmagno1.part3.rar
snoopdigitalmagno1.part4.rar
as you can see our file has divided into 4 parts with my batch codes i just can delet 1st (first) part and not all. it always remains other parts undeleted why?
how can i solve this problem?
attention:1-first part always delet (red one)
2-this is just an example so never focus on that
3-do you think (part) word in my scripts is a good choice?
4- it is a possibility that there are lots of compressed rar files so we should focus (for deletion) on just those one that are unpacked successfully not broken ones or those that we are not going to unzip