. Program for sorting of numbers in vb script?
Answer Posted / abc
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 | 0 No |
Post New Answer View All Answers
Hellow friends, I am learning QTP,but here problem is VB script. please guide me how to learn VB script w.r.t QTP and if you know any books tell me or if you have any materials or any use full material or any else w.r.t QTP please post me p.p.sekhar
How to declare an array in vbscript?
How will you get the last occurrence of one string within another string using vbscript?
How to Import data from a file (file is on the desktop) to the data table
What are the special sub-types in vbscript?
What are the data types supported by vbscript?
i have a problem with this error(this error related edit and
delete button,when i click this button in datagrid..i will
get this error)"Invalid postback or callback argument.
Event validation is enabled using
What are the 2 ways in which a variable can be declared in the vbscript language?
how to automatically update the sql server2005 database records when insert in vb6?
In what way program "hello world" you can write in vbscript?
did any one attended interview in applabs if you had gone through plz tell me the procedure
What is the use of the instr function?
What is the difference between for loop and while loop?
What are the rules to name variable in vbscript?
What is the use of the date function in the vbscript language?