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
Is ajax still in use?
How can you debug asp.net ajax applications?
Describe the formats and protocols used by ajax?
What are the real web applications of ajax currently running in the market?
How can we make a mashup with java by accessing other domains data?
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 dev
What is the disadvantage of ajax?
What are the new controls introduced in asp.net ajax control toolkit? : asp.net ajax
Techniques for asynchronous server communication have been around for years. What makes ajax a "new" approach?
What are the new features included in the microsoft ajax library? : asp.net ajax
Did adaptive path invent ajax? Did google?
How do we get the xmlhttprequest object in ajax?
What is the difference between proxied and proxyless calls?
What are the properties of xmlhttprequest?
What do I need to know to create my own ajax functionality?