Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - winzip

Reply
 
Old 11-03-2008   #1 (permalink)
IT Staff


 
 

winzip

After powershell gernerates some text files in a folder, i thought of using
winzip to zip the folders.

However i can't find winzip command lines.

Or is powershell able to use microsoft zip technology ?



My System SpecsSystem Spec
Old 11-04-2008   #2 (permalink)
Shay Levy [MVP]


 
 

Re: winzip

Hello IT,


You can use write-zip from PSCX (www.codeplex.com/powershellcx) to compress
files or folders, I use it to archive
my scripts folder.


---
Shay Levy
Windows PowerShell MVP
http://blogs.microsoft.co.il/blogs/ScriptFanatic
PowerShell Toolbar: http://tinyurl.com/PSToolbar


IS> After powershell gernerates some text files in a folder, i thought
IS> of using winzip to zip the folders.
IS>
IS> However i can't find winzip command lines.
IS>
IS> Or is powershell able to use microsoft zip technology ?
IS>


My System SpecsSystem Spec
Old 11-04-2008   #3 (permalink)
IT Staff


 
 

Re: winzip

couldn't find write-zip ...is there a exact url ?


"Shay Levy [MVP]" <no@xxxxxx> wrote in message
news:89228ed2501008cb0ca13fd9355d@xxxxxx
Quote:

> Hello IT,
>
>
> You can use write-zip from PSCX (www.codeplex.com/powershellcx) to
> compress files or folders, I use it to archive
> my scripts folder.
>
>
> ---
> Shay Levy
> Windows PowerShell MVP
> http://blogs.microsoft.co.il/blogs/ScriptFanatic
> PowerShell Toolbar: http://tinyurl.com/PSToolbar
>
>
> IS> After powershell gernerates some text files in a folder, i thought
> IS> of using winzip to zip the folders.
> IS> IS> However i can't find winzip command lines.
> IS> IS> Or is powershell able to use microsoft zip technology ?
> IS>
>

My System SpecsSystem Spec
Old 11-05-2008   #4 (permalink)
Shay Levy [MVP]


 
 

Re: winzip

Hello IT,

You can download the setup file here:
http://www.codeplex.com/PowerShellCX...ReleaseId=2688


After you install it, type at the prompt:

PS > Add-PSSnapin PSCX
PS > help Write-Zip

NAME
Write-Zip

SYNOPSIS
Create ZIP format archive files from pipline or parameter input.


SYNTAX
Write-Zip -InputObject <PSObject> [[-OutputPath] <String>] [-FlattenPaths]
[-IncludeEmptyDirectories] [-Level <Null
able`1>] [-NoClobber] [-RemoveOriginal] [<CommonParameters>]

Write-Zip [-Path] <String[]> [[-OutputPath] <String>] [-FlattenPaths]
[-IncludeEmptyDirectories] [-Level <Nullable`
1>] [-NoClobber] [-RemoveOriginal] [<CommonParameters>]

Write-Zip [-LiteralPath] <String[]> [[-OutputPath] <String>] [-FlattenPaths]
[-IncludeEmptyDirectories] [-Level <Nu
llable`1>] [-NoClobber] [-RemoveOriginal] [<CommonParameters>]


DETAILED DESCRIPTION
Create ZIP format archive files from pipline or parameter input.


RELATED LINKS

REMARKS
To see the examples, type: "get-help Write-Zip -examples".
For more information, type: "get-help Write-Zip -detailed".
For technical information, type: "get-help Write-Zip -full".




---
Shay Levy
Windows PowerShell MVP
http://blogs.microsoft.co.il/blogs/ScriptFanatic
PowerShell Toolbar: http://tinyurl.com/PSToolbar


IS> couldn't find write-zip ...is there a exact url ?
IS>
IS> "Shay Levy [MVP]" <no@xxxxxx> wrote in message
IS> news:89228ed2501008cb0ca13fd9355d@xxxxxx
IS>
Quote:
Quote:

>> Hello IT,
>>
>> You can use write-zip from PSCX (www.codeplex.com/powershellcx) to
>> compress files or folders, I use it to archive
>> my scripts folder.
>> ---
>> Shay Levy
>> Windows PowerShell MVP
>> http://blogs.microsoft.co.il/blogs/ScriptFanatic
>> PowerShell Toolbar: http://tinyurl.com/PSToolbar
>> IS> After powershell gernerates some text files in a folder, i
>> thought
>> IS> of using winzip to zip the folders.
>> IS> IS> However i can't find winzip command lines.
>> IS> IS> Or is powershell able to use microsoft zip technology ?
>> IS>

My System SpecsSystem Spec
Old 11-05-2008   #5 (permalink)
IT Staff


 
 

Re: winzip

$WshShell = New-Object -ComObject WScript.Shell
$wshshell.run("winzip32 -m c:\results.zip $dirpath")

Is write-zip better or above better using existing winzip tools ?



"Shay Levy [MVP]" <no@xxxxxx> wrote in message
news:89228ed2505358cb0d4456b1d0da@xxxxxx
Quote:

> Hello IT,
>
> You can download the setup file here:
> http://www.codeplex.com/PowerShellCX...ReleaseId=2688
>
>
> After you install it, type at the prompt:
>
> PS > Add-PSSnapin PSCX
> PS > help Write-Zip
>
> NAME
> Write-Zip
>
> SYNOPSIS
> Create ZIP format archive files from pipline or parameter input.
>
>
> SYNTAX
> Write-Zip -InputObject <PSObject> [[-OutputPath] <String>]
> [-FlattenPaths] [-IncludeEmptyDirectories] [-Level <Null
> able`1>] [-NoClobber] [-RemoveOriginal] [<CommonParameters>]
>
> Write-Zip [-Path] <String[]> [[-OutputPath] <String>] [-FlattenPaths]
> [-IncludeEmptyDirectories] [-Level <Nullable`
> 1>] [-NoClobber] [-RemoveOriginal] [<CommonParameters>]
>
> Write-Zip [-LiteralPath] <String[]> [[-OutputPath] <String>]
> [-FlattenPaths] [-IncludeEmptyDirectories] [-Level <Nu
> llable`1>] [-NoClobber] [-RemoveOriginal] [<CommonParameters>]
>
>
> DETAILED DESCRIPTION
> Create ZIP format archive files from pipline or parameter input.
>
>
> RELATED LINKS
>
> REMARKS
> To see the examples, type: "get-help Write-Zip -examples".
> For more information, type: "get-help Write-Zip -detailed".
> For technical information, type: "get-help Write-Zip -full".
>
>
>
>
> ---
> Shay Levy
> Windows PowerShell MVP
> http://blogs.microsoft.co.il/blogs/ScriptFanatic
> PowerShell Toolbar: http://tinyurl.com/PSToolbar
>
>
> IS> couldn't find write-zip ...is there a exact url ?
> IS> IS> "Shay Levy [MVP]" <no@xxxxxx> wrote in message
> IS> news:89228ed2501008cb0ca13fd9355d@xxxxxx
> IS>
Quote:
Quote:

>>> Hello IT,
>>>
>>> You can use write-zip from PSCX (www.codeplex.com/powershellcx) to
>>> compress files or folders, I use it to archive
>>> my scripts folder.
>>> ---
>>> Shay Levy
>>> Windows PowerShell MVP
>>> http://blogs.microsoft.co.il/blogs/ScriptFanatic
>>> PowerShell Toolbar: http://tinyurl.com/PSToolbar
>>> IS> After powershell gernerates some text files in a folder, i
>>> thought
>>> IS> of using winzip to zip the folders.
>>> IS> IS> However i can't find winzip command lines.
>>> IS> IS> Or is powershell able to use microsoft zip technology ?
>>> IS>
>
>

My System SpecsSystem Spec
Old 11-05-2008   #6 (permalink)
Shay Levy [MVP]


 
 

Re: winzip

Hello IT,


I prefer native powershell cmdlet support so I'd go with PSCX.


---
Shay Levy
Windows PowerShell MVP
http://blogs.microsoft.co.il/blogs/ScriptFanatic
PowerShell Toolbar: http://tinyurl.com/PSToolbar


IS> $WshShell = New-Object -ComObject WScript.Shell
IS> $wshshell.run("winzip32 -m c:\results.zip $dirpath")
IS> Is write-zip better or above better using existing winzip tools ?
IS>
IS> "Shay Levy [MVP]" <no@xxxxxx> wrote in message
IS> news:89228ed2505358cb0d4456b1d0da@xxxxxx
IS>
Quote:
Quote:

>> Hello IT,
>>
>> You can download the setup file here:
>> http://www.codeplex.com/PowerShellCX...eases.aspx?Rel
>> easeId=2688
>> After you install it, type at the prompt:
>>
>> PS > Add-PSSnapin PSCX
>> PS > help Write-Zip
>> NAME
>> Write-Zip
>> SYNOPSIS
>> Create ZIP format archive files from pipline or parameter input.
>> SYNTAX
>> Write-Zip -InputObject <PSObject> [[-OutputPath] <String>]
>> [-FlattenPaths] [-IncludeEmptyDirectories] [-Level <Null
>> able`1>] [-NoClobber] [-RemoveOriginal] [<CommonParameters>]
>> Write-Zip [-Path] <String[]> [[-OutputPath] <String>] [-FlattenPaths]
>> [-IncludeEmptyDirectories] [-Level <Nullable`
>> 1>] [-NoClobber] [-RemoveOriginal] [<CommonParameters>]
>> Write-Zip [-LiteralPath] <String[]> [[-OutputPath] <String>]
>> [-FlattenPaths] [-IncludeEmptyDirectories] [-Level <Nu llable`1>]
>> [-NoClobber] [-RemoveOriginal] [<CommonParameters>]
>>
>> DETAILED DESCRIPTION
>> Create ZIP format archive files from pipline or parameter input.
>> RELATED LINKS
>>
>> REMARKS
>> To see the examples, type: "get-help Write-Zip -examples".
>> For more information, type: "get-help Write-Zip -detailed".
>> For technical information, type: "get-help Write-Zip -full".
>> ---
>> Shay Levy
>> Windows PowerShell MVP
>> http://blogs.microsoft.co.il/blogs/ScriptFanatic
>> PowerShell Toolbar: http://tinyurl.com/PSToolbar
>> IS> couldn't find write-zip ...is there a exact url ?
>> IS> IS> "Shay Levy [MVP]" <no@xxxxxx> wrote in message
>> IS> news:89228ed2501008cb0ca13fd9355d@xxxxxx
>> IS>
Quote:

>>>> Hello IT,
>>>>
>>>> You can use write-zip from PSCX (www.codeplex.com/powershellcx) to
>>>> compress files or folders, I use it to archive
>>>> my scripts folder.
>>>> ---
>>>> Shay Levy
>>>> Windows PowerShell MVP
>>>> http://blogs.microsoft.co.il/blogs/ScriptFanatic
>>>> PowerShell Toolbar: http://tinyurl.com/PSToolbar
>>>> IS> After powershell gernerates some text files in a folder, i
>>>> thought
>>>> IS> of using winzip to zip the folders.
>>>> IS> IS> However i can't find winzip command lines.
>>>> IS> IS> Or is powershell able to use microsoft zip technology ?
>>>> IS>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Solved WinZip Software
WinZip Question Vista General
Solved winzip General Discussion
winzip rar and other compression Vista General
WinZip 10 in TaskBar Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46