VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Compressing Files thru VB (w/ WinZip)

by Jaeger (2 Submissions)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Date Added: Wed 3rd February 2021
Rating: (6 Votes)

this codes compresses any files of your choice to a designated target folder using Winzipr..

Inputs
the source folder and files, the target folder with designated zip name (ie. myfile.zip)
Assumes
you have winzip
Side Effects
you will receive an error message if you don't have WinZip

Rate Compressing Files thru VB (w/ WinZip)

Dim retval As Double
retval = Shell("C:\program files\winzip\WINzip32 -a c:\TargetFolder\AssignedNameFile.zip c:\SourceFolder\SourceFile(s)", 6)
note: i used shell function here.. if anyone has a better idea than of this, pls tell me..

Download this snippet    Add to My Saved Code

Compressing Files thru VB (w/ WinZip) Comments

No comments have been posted about Compressing Files thru VB (w/ WinZip). Why not be the first to post a comment about Compressing Files thru VB (w/ WinZip).

Post your comment

Subject:
Message:
0/1000 characters