Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Zip / compressed folders in XP pro

Status
Not open for further replies.

MrFancyteeth

Programmer
Mar 18, 2003
90
GB
I currently use shell execute to call Winzip to perform zipping.

Now we've moved to XP - we're using compressed folders (ie no winzip installed)

know any way to create a compressed folder - extra mkdir() parameters?

and pass password etc to it similar to -

DECLARE INTEGER ShellExecute IN shell32.dll ;
INTEGER hndWin, ;
STRING cAction, ;
STRING cFileName, ;
STRING cParams, ;
STRING cDir, ;
INTEGER nShowWin

cFileName = "winzip32"
cAction = "open"
nret=ShellExecute(0,cAction,cFileName,' -a -s"APASSWORD" c:\test.zip c:\myfiles\*.*',"",1)

MrF
 
MrFancyteeth,

I haven't use XP. But in W2K there is a utility called 'Cipher' for compression and I think XP also has. So you can use it to replace winzip

Btw, I'm not sure this is related to VFP. I am sorry if someone find this inappropriate.

Regards

-- AirCon --
 
You didn't ask, but there are shareware solutions for zipping/unzipping files directly from VFP without using SHELLEXECUTE. The one I use is AZIP, available at
Works like a charm and is very fast.

Sorry this doesn't exactly address your question about compressed folders.


Mike Krausnick
 
MrFancyTeeth,

If you would like a free solution for zipping I have VFP code that will zip and unzip directories and files using SAWZip. It's completely free and I have used the code to provide backup/restore functionality. The zip files created are 100% Winzip compatible so anything else you may have written for the zip files would still be ok. You didn't specifically ask for any zipping and unzipping alternatives to Winzip so that is why I ask, if interested let me know and I will post the code. Wish I had an answer for you regarding XP compressed folders...I know what you mean though, didn't have to install winzip or winrar on any of the XP boxes which was kinda nice.

Slighthaze = NULL
 
Thanks for the assistance (& offers on sawzip code) but since we have paid licensing for Winzip we could always install that on XP.

It just seems nice to use the inbuilt zipping functionality of XP.

I've been investing Shellnew as "new compressed folder" is an option when right-clicking in a directory/desktop - so i'm thinking "how can i call this through foxpro".

If I get anywhere i'll let u know.

In the meantime i guess i'll just get winzip installed

MrF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top