01 January 2012, 20:46 | #1 |
Registered User
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
|
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" Code:
for %%F in (*.adf) do "7z.exe" a -t7z "%%~nF.7z" "%%~nxF" 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" 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 21:02. |
02 January 2012, 12:26 | #2 |
Registered User
Join Date: Jan 2010
Location: Germany
Posts: 67
|
Or just use total commander for this
|
02 January 2012, 21:00 | #3 |
Registered User
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
|
Ooops... Yes, or use total commander... I think your fuzzy logic is technically superior.
Last edited by Leandro Jardim; 03 January 2012 at 19:11. |
04 January 2012, 18:52 | #4 |
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. |
04 January 2012, 22:51 | #5 |
PSPUAE DEV
|
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. |
04 January 2012, 23:16 | #6 |
Global Moderator
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
|
|
05 January 2012, 03:08 | #7 |
Registered User
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
|
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 06:15. |
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 20:04 |
New up-to-date ADF tool for Windows | MethodGit | request.Apps | 17 | 26 October 2009 08:56 |
Quick .ADF View for Windows Explorer? | Photon | request.Apps | 1 | 17 December 2006 01:50 |
ADF to ADZ with windows ? | Tony Landais | New to Emulation or Amiga scene | 7 | 26 August 2006 02:25 |
Directory Opus (Windows) update | Galaxy | News | 4 | 25 May 2004 20:55 |
|
|