Welcome Guest.   Make a donation to an author on the site October 25, 2014, 02:51:56 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Read the full one-year retrospective report on DonationCoder.com.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Idea: Zip as a drive  (Read 3316 times)
Nuri
Participant
*
Posts: 14

View Profile Give some DonationCredits to this forum member
« on: July 27, 2005, 04:52:59 PM »

I frequently need to work with lot of small files to transfer them easily i zip them together.
I would like a plugin for total commander or a stand alone program wich treats a zip file as a virtual drive.
Logged
skrommel
Fastest code in the west
Developer
***
Posts: 882



View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: July 31, 2005, 08:07:21 PM »

 smiley Here's a very quick hack, so be careful no to delete any of your zip files.

DriveZip creates a virtual drive from a zip file. It asks for a zip file, expands it and substs it to create a virutal drive and opens it in Explorer. Now you can add and remove files from it. It then asks if you want to recompress the zip file or cancel.

Installation:
1: Download and install AutoHotKey from www.autohotkey.com.
2: Create a folder called DriveZip in your programs folder and save the script below as DriveZip.ahk in there.
3: Download www.freebyte.com/download/fbzpack.exe and extract the file FBZip.exe to the DriveZip folder.

Skrommel


[copy or print]
;DriveZip.ahk
;Creates a virtual drive from a zip file
;Skrommel @2005

FINDDRIVE:
DriveGet,list,List
drive=67
Loop,24
{
  Transform,zipdrive,Chr,%drive%
  IfNotInString,list,%zipdrive%
    Break
  drive+=1
}
If drive=91
{
  MsgBox,0,DriveZip,No available drive letters
  ExitApp
}

SELECT:
FileSelectFile,zipfile,3,,Select the ZIP-file, ZIP-files (*.zip)
If zipfile=
{
  MsgBox,1,DriveZip,No file selected. Quit?
  IfMsgBox,OK
    ExitApp
  Goto,SELECT
}

EXTRACT:
RunWait,fbzip -e -p "%zipfile%" "%A_WorkingDir%\%zipdrive%"
RunWait,Subst %zipdrive%: "%A_WorkingDir%\%zipdrive%"
FileAppend,%A_WorkingDir%\%zipdrive%\DriveZip.ini,
Run,Explorer /e`,%zipdrive%:\

CANCEL:
Sleep,1000
MsgBox,1,DriveZip,ZIP-file extracted to %zipdrive%:`n`nPress OK to Recompress`nPress Cancel to clean up and Quit
IfMsgBox,Cancel
{
  FileRemoveDir, %A_WorkingDir%\%zipdrive%, 1
  Run,Subst %zipdrive%: /d
  ExitApp
}

COMPRESS:
FileDelete, %zipfile%
RunWait,fbzip -a -r -p "%zipfile%" "%zipdrive%:\"
FileRemoveDir, %A_WorkingDir%\%zipdrive%, 1
Run,Subst %zipdrive%: /d
ExitApp
Logged

Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
Nuri
Participant
*
Posts: 14

View Profile Give some DonationCredits to this forum member
« Reply #2 on: August 01, 2005, 01:59:36 AM »

Thanks!
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.03s | Server load: 0.05 ]