Unzip archives from the command prompt (...or script)

G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.customize (More info?)

Hi to all,
problem: several hundreds of compressed files (.zip stored in a tree
structure under the file system) to be unzipped.
I would avoid to manually do the works, is it possible to invoke unzip tool
included in WinXp by command line?
If Yes, how?

I also could consider to turn to another sw (free) supporting that feature
Thanks in advance,
G.R.


--

---
Rimuovi il testo in maiuscolo (CANCELLA e QUESTO) dall'indirizzo di reply
per rispondermi, grazie
---
Remove capital text (CANCELLA and QUESTO) from reply address to write me,
thanks
 
Archived from groups: microsoft.public.windowsxp.customize (More info?)

Set objShell = CreateObject("Shell.Application")
Set Ag=Wscript.Arguments
set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\" & Wscript.ScriptName & "\", Chr(34) & Wscript.ScriptFullName & Chr(34)
WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\" & Left(Wscript.ScriptName, Len(Wscript.ScriptName)-3) & "exe" & "\", Chr(34) & Wscript.ScriptFullName & Chr(34)

Set DestFldr=objShell.NameSpace(0)
Set SrcFldr=objShell.NameSpace(Ag(0))


Set FldrItems=SrcFldr.Items

DestFldr.CopyHere FldrItems, &H214


--
----------------------------------------------------------
http://www.uscricket.com
"Giuseppe R." <giuseppe_ronchiCANCELLA@QUESTOhotmail.com> wrote in message news:OnNL5bh1EHA.3092@TK2MSFTNGP10.phx.gbl...
>
> Hi to all,
> problem: several hundreds of compressed files (.zip stored in a tree
> structure under the file system) to be unzipped.
> I would avoid to manually do the works, is it possible to invoke unzip tool
> included in WinXp by command line?
> If Yes, how?
>
> I also could consider to turn to another sw (free) supporting that feature
> Thanks in advance,
> G.R.
>
>
> --
>
> ---
> Rimuovi il testo in maiuscolo (CANCELLA e QUESTO) dall'indirizzo di reply
> per rispondermi, grazie
> ---
> Remove capital text (CANCELLA and QUESTO) from reply address to write me,
> thanks
>
>
 
Archived from groups: microsoft.public.windowsxp.customize (More info?)

What?
Sorry but I'm not in a position to understand your "code".
What is it? It's simply a batch file (DOS)? That is I just to create a .bat
file, insert your code and run it?
What it will be the results?
I only understand your code will affect registry key but I didn't understand
how and how that modify will resolve my problem.

please give me some further information before starting use your code,
thanks a lot.
G.R.

--

---
Rimuovi il testo in maiuscolo (CANCELLA e QUESTO) dall'indirizzo di reply
per rispondermi, grazie
---
Remove capital text (CANCELLA and QUESTO) from reply address to write me,
thanks
 
Archived from groups: microsoft.public.windowsxp.customize (More info?)

One freeware option: http://www.info-zip.org

In article <OnNL5bh1EHA.3092@TK2MSFTNGP10.phx.gbl>, "Giuseppe R."
<giuseppe_ronchiCANCELLA@QUESTOhotmail.com> wrote:
|
|Hi to all,
|problem: several hundreds of compressed files (.zip stored in a tree
|structure under the file system) to be unzipped.
|I would avoid to manually do the works, is it possible to invoke unzip tool
|included in WinXp by command line?
|If Yes, how?
|
|I also could consider to turn to another sw (free) supporting that feature
|Thanks in advance,
|G.R.
|
|
 
Archived from groups: microsoft.public.windowsxp.customize (More info?)

Set objShell = CreateObject("Shell.Application")
Set Ag=Wscript.Arguments
set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\" & Wscript.ScriptName & "\", Chr(34) & Wscript.ScriptFullName & Chr(34)
WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\" & Left(Wscript.ScriptName, Len(Wscript.ScriptName)-3) & "exe" & "\", Chr(34) & Wscript.ScriptFullName & Chr(34)

Set DestFldr=objShell.NameSpace(Ag(1))
Set SrcFldr=objShell.NameSpace(Ag(0))


Set FldrItems=SrcFldr.Items

DestFldr.CopyHere FldrItems, &H214


I changed it a bit. Usuage

Unzip.vbs zipfile extractfolder
EG
unzip "c:\Documents And Settings\myzip.zip" "c:\my folder"

Copy the lines into a text document (eg notepad) and name the file
unzip.vbs

The destination folder must exist. It will create any subfolders.
--
----------------------------------------------------------
http://www.uscricket.com
"Giuseppe R." <giuseppe_ronchiCANCELLA@QUESTOhotmail.com> wrote in message news:uTLtE7q1EHA.2612@TK2MSFTNGP14.phx.gbl...
> What?
> Sorry but I'm not in a position to understand your "code".
> What is it? It's simply a batch file (DOS)? That is I just to create a ..bat
> file, insert your code and run it?
> What it will be the results?
> I only understand your code will affect registry key but I didn't understand
> how and how that modify will resolve my problem.
>
> please give me some further information before starting use your code,
> thanks a lot.
> G.R.
>
> --
>
> ---
> Rimuovi il testo in maiuscolo (CANCELLA e QUESTO) dall'indirizzo di reply
> per rispondermi, grazie
> ---
> Remove capital text (CANCELLA and QUESTO) from reply address to write me,
> thanks
>
>