Answer Posted / rajesh
Const FOF_CREATEPROGRESSDLG = &H0&
Const MyZip ="C:Documents and SettingsabcdDesktopWIPMyZipFile.zip"
Const File1 = "C:Documents and SettingsabcdDesktopWIPABCD.xml"
'-------------- create empty zip file ---------
'Create the basis of a zip file.
CreateObject("Scripting.FileSystemObject") _
.CreateTextFile(MyZip, True) _
.Write "PK" & Chr(5) & Chr(6) & String(18, vbNullChar)
'-------------- zip ---------------------------
'get ready to add files to zip
With CreateObject("Shell.Application")
'add files
.NameSpace(MyZip).CopyHere File1, FOF_CREATEPROGRESSDLG
End With
wScript.Sleep 1000
wscript.echo "Done!"
'-------end adding files to zip folder------------------------------
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the role of the callback function in ajax?
What is ajax method?
what is xmlhttprequest?
Did adaptive path invent ajax? Did google? Did adaptive path help build google's ajax applications?
What are synchronous and asynchronous ajax requests?
Why do we use the xmlhttprequest object in ajax? : asp.net ajax
How does html_ajax compare with the xajax project at sourceforge?
Which are the trigger types that we find in update panel?
Can you list some examples of ajax-based applications?
Difference between server-side ajax framework and client-side ajax framework?
How does one call a javascript function from the ajax code?
Why is html_ajax having stability issues on some installations?
What is the difference between synchronous and asynchronous requests?
How do I submit a form or a part of a form without a page refresh?
Which are the problems that can be fixed using ajax and what is the actual meaning of ajax?