Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > Re: Compress files and verify

Reply
Thread Tools Display Modes

Re: Compress files and verify

 
 
Pegasus \(MVP\)
Guest
Posts: n/a

 
      08-07-2008

"CenturionX" <> wrote in message
news:ce8a58dc-211e-4393-a1b4-...
> Hello everybody,
>
> I'm new in this, about the windows scripting.
>
> I was asked to create a script to compress a group of log files in a
> specific directory, verify the compressed file is right and then the
> directory size.
>
> The script will work in Windows XP and 2000 server.
> Any help will be appreciated
>
> Thanks.


You could do this:
1. Compress the files.
2. Uncompress then to a different directory.
3. Compare the two file sets.

What exactly do you mean with "and then the directory size."?


 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a

 
      08-07-2008

"CenturionX" <> wrote in message
news:54d2e89f-7be0-452e-b10d-...
On Aug 7, 3:40 am, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
> "CenturionX" <darwinbaldr...@gmail.com> wrote in message
>
> news:ce8a58dc-211e-4393-a1b4-...
>
> > Hello everybody,

>
> > I'm new in this, about the windows scripting.

>
> > I was asked to create a script to compress a group of log files in a
> > specific directory, verify the compressed file is right and then the
> > directory size.

>
> > The script will work in Windows XP and 2000 server.
> > Any help will be appreciated

>
> > Thanks.

>
> You could do this:
> 1. Compress the files.
> 2. Uncompress then to a different directory.
> 3. Compare the two file sets.
>
> What exactly do you mean with "and then the directory size."?


Sorry,

After that i have to check the folder size where i compressed all the
files.

But i don't know what commands to use and this PCs doesn't have
installed winzip. it has to be with the native compress tool.

Thanks.

===========

Fine. Make it four steps:
1. Compress the files.
2. Uncompress then to a different directory.
3. Compare the two file sets.
4. Compare the size of the original folder with that of
the uncompress folder from Step 2.


 
Reply With Quote
 
manu-l
Guest
Posts: n/a

 
      08-16-2008

"Pegasus (MVP)" <> a écrit dans le message de news:
Os1G9mK%...
>
> "CenturionX" <> wrote in message
> news:54d2e89f-7be0-452e-b10d-...
> On Aug 7, 3:40 am, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
>> "CenturionX" <darwinbaldr...@gmail.com> wrote in message
>>
>> news:ce8a58dc-211e-4393-a1b4-...
>>
>> > Hello everybody,

>>
>> > I'm new in this, about the windows scripting.

>>
>> > I was asked to create a script to compress a group of log files in a
>> > specific directory, verify the compressed file is right and then the
>> > directory size.

>>
>> > The script will work in Windows XP and 2000 server.
>> > Any help will be appreciated

>>
>> > Thanks.

>>
>> You could do this:
>> 1. Compress the files.
>> 2. Uncompress then to a different directory.
>> 3. Compare the two file sets.
>>
>> What exactly do you mean with "and then the directory size."?

>
> Sorry,
>
> After that i have to check the folder size where i compressed all the
> files.
>
> But i don't know what commands to use and this PCs doesn't have
> installed winzip. it has to be with the native compress tool.
>
> Thanks.
>
> ===========
>
> Fine. Make it four steps:
> 1. Compress the files.
> 2. Uncompress then to a different directory.
> 3. Compare the two file sets.
> 4. Compare the size of the original folder with that of
> the uncompress folder from Step 2.
>


Hi,

You can you compress and expand from the Ressource Kit and the fc command
from shell. That might be ok.
For the FCcommand, you can use /B for binary, /L for ascii or /U for unicode

SET src=<path\file>
SET dst=<path\file.zip>
SET exp=<path>

COMPRESS -z %src% %dst%
EXPAND %dst% %exp%
FC /B %src% %exp%\file

Regards,

Manu.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compress Files Ardley Windows Vista Mail 2 01-07-2009 05:23 PM
Using avi, wmv files but how do I compress????? bluemonarc Windows Media Player 1 11-02-2006 05:32 PM
Compress MP3 files Spazzer Windows Media Player 1 08-13-2006 03:22 PM
compress files Arthus Lim Windows Server 3 09-08-2005 12:26 PM
Compress WMA files further? Tom Windows Media Player 0 03-01-2005 06:10 PM



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 47 48 49 50 51 52 53 54 55 56 57 58 59