Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Deleting From Archives Recursively ( Rar + Zip )
Old 08-21-2008, 12:47 PM Deleting From Archives Recursively ( Rar + Zip )
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Quest: Trying to delete a file type (.avi) from zips and rar files using this (non working) command:

@for %%I in (*.zip) do Izarcc -d %%I *.avi -r
@for %%I in (*.zip) do 7z d %%I *.avi -r
@for %%I in (*.zip) do rar -d %%I *.avi -r

None of these will go through sub directories and perform the delete function inside the zip or rar files. But they WILL delete if the zip or rar is in the same directory as the bat (or cmd) file.

Please help me delete from sub-directories
Brian
Brian07002 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-26-2008, 07:12 PM Re: Deleting From Archives Recursively ( Rar + Zip )
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
It's not clear what you're asking?

Zip files aren't folders, they're files. XP exposes them as folders, but this is just a trick. What that means is that file traversal semantics don't work here.

You can extract the archive, delete all the avi files, and then rebuild it. You might be able to find an API to a specific archival format to do this programatically.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 08-31-2008, 08:03 AM Re: Deleting From Archives Recursively ( Rar + Zip )
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
I figured that out already...I was referring to recursive mode that many command line archive tools support...Recursive in the sense of modifying files in folders worth of zip or rar files.

Thanks for attempting to help though
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Deleting From Archives Recursively ( Rar + Zip )
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15897 seconds with 12 queries