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 ajaxcontrol toolkit?
How to control how long an ajax request may last?
What are the new features of asp.net ajax 4.0?
What are limitations of ajax?
What does the minimumprefixlength property of the autocompleteextender control do? : asp.net ajax
Whats with the -alpha in the install instructions?
List the different states of xmlhttprequest with their description? : asp.net ajax
What is the predominant distinction between javascript and j-query?
How to create an ajax website using visual studio?
Is ajax considered a programming language?
What are the differences between ajax and javascript?
What are asp.net ajax 4.0 validation controls?
Who's using ajax?
What are the important methods of xmlhttprequest?
What is ajax used for?