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 are the different controls of asp.net ajax? : asp.net ajax
How do I access data from other domains to create a mashup with java?
How do I handle concurrent ajax requests?
Is ajax just another name for xmlhttprequest?
Describe the process and benefits of using the always visible control extender?
We used asynchronous server communication for a long time, what new thing is ajax bringing?
Which control you need to place on the page to show loading image?
What is the difference between synchronous postback and asynchronous postback? : asp.net ajax
What are the differences between ajax and javascript?
What browsers does html_ajax work with?
Is ajax an api?
Describe the accordionextender control? : asp.net ajax
Does ajax have significant accessibility or browser compatibility limitations? Do ajax applications break the back button? Is ajax compatible with rest? Are there security considerations with ajax development? Can ajax applications be made to work for users who have javascript turned off?
Explain the updatepanel control? : asp.net ajax
Can you list some examples of ajax-based applications?