English Amiga Board


Go Back   English Amiga Board > Main > Amiga scene

 
 
Thread Tools
Old 01 January 2012, 21:46   #1
Leandro Jardim
Registered User
Leandro Jardim's Avatar
 
Join Date: Nov 2009
Location: Legoland
Age: 38
Posts: 1,152
Compress all adf's in a directory (Windows)

This a tip for everyone that uses WinUAE and have an ever growing software collection of adf's and iso's. Its easy to compress all iso's or adf's inside a directory simply by clicking on a icon. But the tips I show here is for the 7z archiver (http://www.7-zip.org/). For other archivers, the syntax of the command varies.

Beware, using the MSDOS script below in a wrong way you can delete your floppy images without ever asking you first, can create empty archives and can create files with strange names. You need to have a basic understanding of MSDOS scripting to fix these problems yourself.

Beware, beware!

Open notepad, enter the text below and save to the same folder where lives the files you want to compress appending the extension ".bat" to the filename:

To compress to .zip enter:

Code:
for %%F in (*.adf) do "7z.exe" a -tZip "%%~nF.zip" "%%~nxF"
Or to compress to .7z:

Code:
for %%F in (*.adf) do "7z.exe" a -t7z "%%~nF.7z" "%%~nxF"
Replace the (*.adf) to (*.iso) or whatever the extension of the files are and replace "7z.exe" to the entire path of the 7z command line tool (in my computer it is "C:\Program Files\7-Zip\7z.exe").

Now you can click on the icon of the file you created, and it will compress all files with that extension. In fact, you can drop the script to any folder, and when you click the script icon it will automatically compres all filer inside there.

If you want, you can automatically delete all adf's to remain only the zipped files. Beware, it works this way: before you save the text file, append below all text you entered on notepad, the following:

Code:
 for %%F in (*.adf) do del "%%~nxF"
Pay attention to enter the text correctly or bad things may happen. Again, you need to replace the (*.adf) to the kind of file you are working on, for example (*.iso). And its done!

If you need help with MSDOS scripting, you can issue the MSDOS help system entering "help" with the name of the command you want to know about.

Last edited by Leandro Jardim; 01 January 2012 at 22:02.
Leandro Jardim is offline  
AdSense AdSense  
Old 02 January 2012, 13:26   #2
fuzzylogic
Registered User
 
Join Date: Jan 2010
Location: Germany
Posts: 59
Or just use total commander for this
fuzzylogic is offline  
Old 02 January 2012, 22:00   #3
Leandro Jardim
Registered User
Leandro Jardim's Avatar
 
Join Date: Nov 2009
Location: Legoland
Age: 38
Posts: 1,152
Quote:
Originally Posted by fuzzylogic View Post
Or just use total commander for this
Ooops... Yes, or use total commander... I think your fuzzy logic is technically superior.

Last edited by Leandro Jardim; 03 January 2012 at 20:11.
Leandro Jardim is offline  
Old 04 January 2012, 19:52   #4
HnieX
Banned
 
Join Date: Dec 2011
Location: Way up in the cold cold north of Scandinavia
Posts: 16
http://www.ghisler.com/plugins.htm

AmigaDX Plug-in for Total Commander.

With this plugin you can extract/view ADF, DMS, ADZ, HDF, HDZ, DMP file types for Amiga Emulators (WinUAE, U*AE). You can also create/modify ADF files. If you are an old Amiga user who have installed WinUAE or other Amiga emulator then this plugin is for you.
HnieX is offline  
Old 04 January 2012, 23:51   #5
FOL
PSPUAE DEV

FOL's Avatar
 
Join Date: Nov 2006
Location: Barry / UK
Age: 39
Posts: 5,591
Send a message via MSN to FOL Send a message via Skype™ to FOL
Im not sure I understand the original post.
Why are you messing with scripts, you simply, highlight all adf's, right click and select add to 7z archive.
It does it all for you.

Unless your talking about compressing them individually? all in one go.
FOL is offline  
Old 05 January 2012, 00:16   #6
prowler
Global Moderator

prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,278
Quote:
Originally Posted by FOL View Post
Unless your talking about compressing them individually? all in one go.
That was my understanding.
prowler is offline  
Old 05 January 2012, 04:08   #7
Leandro Jardim
Registered User
Leandro Jardim's Avatar
 
Join Date: Nov 2009
Location: Legoland
Age: 38
Posts: 1,152
Quote:
Originally Posted by prowler View Post
That was my understanding.
That was what I meant. This generated quite a lot of confusion, eh? Sorry...

It compress all files individually in one go, and can optionally delete all old files.

Its a trick for people that cannot afford TotalCommander, like me, or would not like to buy it only for compressing adf's.

The "for" command in MSDOS does a job equivalent to the "list" command in AmigaOS. But the two are not equal.

Last edited by Leandro Jardim; 05 January 2012 at 07:15.
Leandro Jardim is offline  
AdSense AdSense  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Files to ADF or HDF Technix59 support.WinUAE 8 05 May 2011 21:04
New up-to-date ADF tool for Windows MethodGit request.Apps 17 26 October 2009 09:56
Quick .ADF View for Windows Explorer? Photon request.Apps 1 17 December 2006 02:50
ADF to ADZ with windows ? Tony Landais New to Emulation or Amiga scene 7 26 August 2006 03:25
Directory Opus (Windows) update Galaxy News 4 25 May 2004 21:55

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

Forum Jump


All times are GMT +2. The time now is 19:10.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.12984 seconds with 11 queries