wraithdu Posted July 2, 2010 Author Share Posted July 2, 2010 Flags for CopyHere method aren't working prior win7Which flags specifically? If you're referring to that 'Compressing...' dialog from the other thread... As I said there, I believe that dialog must be created by the zipfldr.dll library, not by the shell. As such, it wouldn't be affected by any flags, specifcally flag = 4, passed to the CopyHere method. Link to comment Share on other sites More sharing options...
trancexx Posted July 2, 2010 Share Posted July 2, 2010 (edited) Which flags specifically? If you're referring to that 'Compressing...' dialog from the other thread... As I said there, I believe that dialog must be created by the zipfldr.dll library, not by the shell. As such, it wouldn't be affected by any flags, specifcally flag = 4, passed to the CopyHere method.None of the flags while unziping. XP SP3 for example.(zipfldr.dll from Vista above no longer have dialogs within (as a resource). I don't know if that means anything.) Edited July 2, 2010 by trancexx ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 2, 2010 Moderators Share Posted July 2, 2010 wraithdu,New version looks good so far. For interest, I am now getting the "Compressing" dialog every time, regardless of the flag setting, although if I understand you and trancexx correctly that is not surprising.M23  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area  Link to comment Share on other sites More sharing options...
wraithdu Posted July 2, 2010 Author Share Posted July 2, 2010 Yep, for longer operations you'll see the 'Compressing...' dialog. I suspect it's from zipfldr.dll, so the CopyHere flags can't control it. You could check by opening zipfldr.dll with ResHacker and check out the included dialogs. I only have Win7 for testing, unless I boot up a VM (yawn...), so I don't have that dialog any more. Link to comment Share on other sites More sharing options...
Emiel Wieldraaijer Posted July 2, 2010 Share Posted July 2, 2010 (edited) @wraithduThanks..Some small things : - Does this also work on Windows 2000 ?- It will not work if someone disables this feature in WindowsAdd compress support to Windows 2000Enable/Disable compressionBest regards,Emiel Edited July 2, 2010 by Emiel Wieldraaijer Best regards,Emiel Wieldraaijer Link to comment Share on other sites More sharing options...
wraithdu Posted July 3, 2010 Author Share Posted July 3, 2010 Well, yes... what do you want me to do about it? It's well known that the zipfldr library has to be installed for this UDF to be useful. Who's still using Win2k anyway? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 4, 2010 Moderators Share Posted July 4, 2010 wraithdu,My Vista zipfldr.dll does not seem to have a dialogs within according to ResHacker, so heaven knows where the dialog is coming from. I have got it reduced to a very brief "flash" with this:#include "Zip.au3" AdlibRegister("Hider", 10) $sZipFile = @ScriptDir & "\MyZip.zip" $sRet = _Zip_Create(@ScriptDir & "\MyZip.zip", 1) If $sRet <> $sZipFile Then Exit $iRet = _Zip_AddItem($sZipFile, "My_Folder") ConsoleWrite($iRet & @CRLF) Func Hider() If BitAnd(WinGetState("Compressing"), 2) = 2 Then WinSetState("Compressing", "", @SW_HIDE) AdlibUnRegister("Hider") EndIf EndFuncOn a positive note, the UDF is still working fine for me so far - very stable. M23  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area  Link to comment Share on other sites More sharing options...
wraithdu Posted July 5, 2010 Author Share Posted July 5, 2010 Huh, tricky little dialog indeed. I would do something if I could, but I think it's beyond a user's control of the zipfldr library. Shame really, it has potential if MS had fleshed it out a bit more. It could use some compression settings as well. But it does well for my automated XYplorer updater script. Link to comment Share on other sites More sharing options...
ikaros Posted July 11, 2010 Share Posted July 11, 2010 Great UDF, i downloaded the first ZIP archive i found, and this upgrades the latest for 100's %... However, this UDF does not answer my problem. Althought i cqan upload a zip file and go to the CPanel's admin console to extract it, i would like to make it through this UDF, is it possible? Ofer,WWW Home baseArticles for allOnline statistics toolThe online mass mailerWorld of bicycles Link to comment Share on other sites More sharing options...
wraithdu Posted July 11, 2010 Author Share Posted July 11, 2010 I have not tested this against network paths for destinations. Perhaps next week I'll get an opportunity. In the meantime, if you can mount your network paths as local drives, you should be able to use the UDF as normal. Link to comment Share on other sites More sharing options...
ikaros Posted July 12, 2010 Share Posted July 12, 2010 Good, now if you only tell me how, this will be great. I have an hosting server with my public_html on it, however. i am bad windows user, so i do not know how to mount a server path to windows os. Ofer,WWW Home baseArticles for allOnline statistics toolThe online mass mailerWorld of bicycles Link to comment Share on other sites More sharing options...
longworthbob Posted July 15, 2010 Share Posted July 15, 2010 Great Work! Just started working with this code today, and it seems like it's going to do the job. One small item. Error 4 returned from _Zip_AddItem() indicates "4 - ZIP file does not exist". That ran me around for a while until I realized it was actually looking at $sFileName and not $sZipFile. Just a thought. Thanks again. This is going to be good. Link to comment Share on other sites More sharing options...
wraithdu Posted July 16, 2010 Author Share Posted July 16, 2010 Heh, seems I was a little out of it when error checking that function. Fixed now, see first post. Link to comment Share on other sites More sharing options...
motionman95 Posted July 18, 2010 Share Posted July 18, 2010 Err, I tried to use this but on the _Zip_UnzipAll function I always get the 2 error. Any suggestions? Link to comment Share on other sites More sharing options...
wraithdu Posted July 18, 2010 Author Share Posted July 18, 2010 Yeah, read the headers for what the error message means and fix the problem. (It means the zipfldr library is not installed or is broken on your computer. Try 'regsvr32 zipfldr.dll'.) Link to comment Share on other sites More sharing options...
ParoXsitiC Posted August 24, 2010 Share Posted August 24, 2010 This doesnt seem to working correctly with Windows 7? I am getting hung up in the Do Sleep(250) $oItem = $oNS.ParseName($sNameOnly) Until IsObj($oItem) In _Zip_AddItem. Link to comment Share on other sites More sharing options...
wraithdu Posted August 24, 2010 Author Share Posted August 24, 2010 I wrote and tested this on Win7. You're going to have to provide considerably more information than that. Link to comment Share on other sites More sharing options...
ParoXsitiC Posted August 27, 2010 Share Posted August 27, 2010 (edited) I wrote and tested this on Win7. You're going to have to provide considerably more information than that. What information would you like? I am running the lastest autoIT non-beta, the latest SciTE. Windows 7 Professional. The following script never displays "It worked!"...it just hangs at the until I stated: #include "zip.au3" $ZipFileFullPath = @ScriptDir & "\test.zip" $FolderFullPath = @ScriptDir & "\test\" $Zip = _Zip_Create($ZipFileFullPath, 1) ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') :(' & @min & ':' & @sec & ':' & @msec & ') $Zip = ' & $Zip & ' : Error code: ' & @error & ' Extended code: ' & @extended & @crlf) ;### Debug Console $Test = _Zip_AddItem($Zip, $FolderFullPath) ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') :(' & @min & ':' & @sec & ':' & @msec & ') $Test = ' & $Test & ' : Error code: ' & @error & ' Extended code: ' & @extended & @crlf) ;### Debug Console Msgbox(0,0,"It worked!") the folder "test" just has a bunch of random .txt files in it. The zip is created, all the files get zipped...everything works, but it never returns out of the _AddItem function..it gets hung up. Here is the output (Note the 2nd debug never shows, as its still hung up.) @@ Debug(8) :(40:44:783) $Zip = C:\Users\Brian\Desktop\ZipSucks\test.zip : Error code: 0 Extended code: 0 Edited August 27, 2010 by ParoXsitiC Link to comment Share on other sites More sharing options...
wraithdu Posted August 27, 2010 Author Share Posted August 27, 2010 (edited) Thanks. See the first post for the fix. Had to do with your trailing \ in the folder path, and me not removing it. Edited August 27, 2010 by wraithdu Link to comment Share on other sites More sharing options...
bb01 Posted September 2, 2010 Share Posted September 2, 2010 (edited) Hi i'm using the below script & its creating the zip, but its not inserting the phonetree.csv into the zip file.. the zip file is always blank.. Any ideas why this is happening? #include <_Zip.au3> Global $sZipFile=@ScriptDir & "\phonetree.zip" Global $sFileName=@ScriptDir & "\phonetree.csv" Global $sDestDir="\" Global $iFlag=77 ;create the phonetree.zip _Zip_Create("\phonetree.zip",1) ;Then to add phonetree.csv to the zip _Zip_AddItem($sZipFile, $sFileName, $sDestDir, $iFlag) Edited September 2, 2010 by bb01 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now