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
Describe the accordionextender control?
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?
Where should I start?
What is asp.net 2.0 ajax?
Who is using ajax?
When do I use a synchronous versus asynchronous request?
How can you find out that an ajax request has been completed? : asp.net ajax
Tell name of all the control of ajax?
Can ajax technology work on web servers other than iis?
Is it true that a xmlhttprequest objects belongs to the w3c standard?
Methods of consuming web services in AJAX?
Do we have to use http get/post for the ajax calls?
Is it possible to set session variables from javascript?
Which request is better with ajax, get or post?
What are the difference between AJAX and Javascript?