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
Did adaptive path help build google's ajax applications?
What are the different ready states of a request in ajax?
What is the syntax to create ajax objects? : asp.net ajax
Which request is better with ajax, get or post?
What are the technologies used by ajax?
Is it possible to use multiple scriptmanager controls on a web page? : asp.net ajax
What is the difference between json and ajax?
What are the advantages and Disadvantage of Ajax?
Describe the situations in which ajax should not be used? : asp.net ajax
Is the ajaxcontroltoolkit.dll file installed in the global assembly cache? : asp.net ajax
What is the disadvantage of ajax?
What is xmlhttprequest object in ajax? How can you xmlhttprequest object?
What do I do on the server to interact with an ajax client?
How ajax is different?
Describe the animation extender control and the method by which this control is utilized?