. 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


Please Help Members By Posting Answers For Below Questions

What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?

490


Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.

1594


how to check whether link is disabled in QTP??

5635


Explain the asc function?

510


filter the array values without using filter function?

1659






Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).

1444


what is diff between static and dynaic arrys?

1592


HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.

2067


How regexp.execute method works?

596


Explain about filter expression?

570


What is vbscript procedures?

604


PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com

1668


Plzzzzzzz can any one tell me which is the best institute in hyderabad for learing VBScript. plz do answer guys its urgent plzzzzzzz. thanks in advance.

1730


By default in vbscript the arguments passed to functions and subroutines are by reference or by value?

629


What is difference between vbscript and vba?

614