Previous in Forum: Internal RAM and ROM of the 8051   Next in Forum: Plotting Trends Based on Up/Down Time for Canopy Radios
Close
Close
Close
4 comments
Rate Comments: Nested
Anonymous Poster

Unzip Files in VB Script

01/05/2011 10:57 PM

Hi

I want to unzip files in Vbscript in quite mode whts the code for tht.

i can unzip files with the following code but cant able to make it in sailent mode...

Function Unzip(strFileName,strFolderName)

Dim objshell

Dim objfso

' Create Shell.Application so we can use the CopyHere method

Set objshell = CreateObject("Shell.Application")

' Create FileSystemObject so we can use FolderExists and CreateFolder if necessary

Set objfso = CreateObject("Scripting.FileSystemObject")

' Create folder to receive files if it doesn' t already exist

If Not objfso.FolderExists(strFolderName) Then objfso.CreateFolder strFolderName

' Use CopyHere to extract files

objshell.NameSpace(strFolderName).CopyHere objshell.NameSpace(strFileName).Items

Set objfso = Nothing

Set objshell = Nothing

End Function

Unzip "D:\RST\JKS\project.zip","D:\Test"

Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Anonymous Poster
#1

Re: Unzip Files in vbscript

01/06/2011 2:02 AM

What is "quite mode"?

What is "tht"?

Don't "text" here. It only reveals your laziness.

Reply
Anonymous Poster
#2

Re: Unzip Files in vbscript

01/06/2011 3:21 AM

How to extract files in silent mode? While extracting files it will popup one window.. i dont want to display tht window... The file will extract but window will be invisible.

Reply
Anonymous Poster
#3

Re: Unzip Files in VB Script

01/13/2011 3:01 AM

I think no one know how to unzip it in silent mode.. better u google it you may get the answer

Reply
Anonymous Poster
#4

Re: Unzip Files in VB Script

01/21/2011 1:47 AM

Hi

Try this for extract folders in silent mode using VBScript with 7-Zip installation the below is the code:

'Zip file path is = "D\Files\Folders\files.zip"
'Extracted path is = "D:\Test\Project\files"


Dim ABC, XYZ
ABC="D\Files\Folders" 'Path for where the zip file is present
XYZ="D:\Test" 'Path where to extract the file
Set WshShell=CreateObject("Wscript.Shell")
ret=WshShell.Run("""C:\Program Files\7-Zip\7z.xex"" x -aoa -r " & ABC & "\files.Zip -o" & XYZ & "\Project",0,True)

Reply
Reply to Forum Thread 4 comments

Previous in Forum: Internal RAM and ROM of the 8051   Next in Forum: Plotting Trends Based on Up/Down Time for Canopy Radios
You might be interested in: Bar Code Scanners, Bar Code Cards, Bar Code Software

Advertisement