ZipOut - Extracts a dropped zip-file and renames the files' extensions.
Installation:
1: Download and install AutoHotKey from
www.autohotkey.com.
2: Create a folder called ZipOut in your programs folder
3: Download
www.freebyte.com/download/fbzpack.exe and extract the file FBZip.exe to the ZipOut folder.
4: Save the script below as ZipOut.ahk in the ZipOut folder.
5: Edit the settings at the top of the ZipOut.ahk-file.
6: Rightclick on the ZipOut.ahk and choose Compile script to make ZipOut.exe.
7: Create a shortcut to ZipOut.exe on your desktop.
To create other shortcuts with other folders and extensions, repeat steps 3-6.
Usage:
Drag and drop a zip-file onto the shortcut to extract it and rename the files.
Or just start the script or exe-file to have it ask for a zip-file.
Skrommel
;ZipOut.ahk
; Extracts a dropped zip-file and renames the files' extensions
;Skrommel @2005
;Settings
path=C:\Images
from=jpf
to=jpc
command=Explorer /e,%path%
;Script
SELECT:
If 1=
{
FileSelectFile,zipfile,3,,Select the ZIP-file, ZIP-files (*.zip)
If zipfile=
{
MsgBox,1,DriveZip,No file selected. Quit?
IfMsgBox,OK
ExitApp
Goto,SELECT
}
}
Else
zipfile=%1%
RunWait,fbzip -e -p "%zipfile%" "%path%"
Loop,%path%\*.%from%,,1
{
SplitPath,A_LoopFileFullPath,name,dir,ext,name_no_ext,drive
FileMove,%A_LoopFileFullPath%,%dir%.%to%
}
If command<>
Run,%command%