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
Old 08-18-2008, 09:38 PM Winrar Help...
Brian07002's Avatar
Defies a Status

Posts: 2,140
Name: ...
Location: ...
Trades: 0
Can someone figure out how to delete all avi movies from a list of zip files? I have folders & sub-folders full of these, and I need to remove the .avi files from the zip files...I tried following WinRar's help file, but no luck...I was trying something like this:

WinRAR d *.* *.avi

Why I did that code? I figured *.* (wildcard) would delete from all zip files and *.avi would delete the avi extension, but it didn't work

Of course I saved it as a .cmd file before executing it.

I'd appreciate your help! The quicker the better cause my hard drive is filling up really quick.

Thanks alot!
-Brian
Brian07002 is online now
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-19-2008, 04:44 AM Re: Winrar Help...
Brian07002's Avatar
Defies a Status

Posts: 2,140
Name: ...
Location: ...
Trades: 0
I figured it out, but I need one more thing...How can I delete from all sub-folders, not just the current (root) directory?

Code:
for %%I in (*.zip) do "C:\Program Files\WinRAR\WinRAR.exe" d -ibck "%%I" *.avi
Thanks alot!
-Brian
Brian07002 is online now
Reply With Quote
View Public Profile
 
Old 08-19-2008, 11:36 AM Re: Winrar Help...
Brian07002's Avatar
Defies a Status

Posts: 2,140
Name: ...
Location: ...
Trades: 0
Funny? I added the -r (recursive switch) and if I run the batch file from my desktop, it works, but when I put it into a folder (with sub-folders) it doesn't...Whats the deal here? Anyone?

Thanks!
-Brian
Brian07002 is online now
Reply With Quote
View Public Profile
 
Old 08-19-2008, 12:14 PM Re: Winrar Help...
Brian07002's Avatar
Defies a Status

Posts: 2,140
Name: ...
Location: ...
Trades: 0
Hello Anyone?

-Brian
Brian07002 is online now
Reply With Quote
View Public Profile
 
Old 08-19-2008, 02:56 PM Re: Winrar Help...
Brian07002's Avatar
Defies a Status

Posts: 2,140
Name: ...
Location: ...
Trades: 0
No one to help me on this?

All someone needs to do is modify this code so that it will delete from all sub-directories. It may look correct, but for some reason, it doesn't delete if the zip file is in a sub-directory.

Code:
for %%I in (*.zip) do "C:\Program Files\WinRAR\RAR.exe" d -r "%%I" *.avi
I get Error: Bad Archive

All archives have been tested and are ok

Thanks!
-Brian

Last edited by Brian07002; 08-19-2008 at 02:58 PM..
Brian07002 is online now
Reply With Quote
View Public Profile
 
Reply     « Reply to Winrar Help...
 

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.29486 seconds with 12 queries