Path: number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news2.euro.net!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!news.highwinds-media.com!newspeer1-win.ntli.net!newsfe6-win.ntli.net.POSTED!53ab2750!not-for-mail
From: Esra Sdrawkcab
Organization: dis
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB;
rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.0
MIME-Version: 1.0
Newsgroups: alt.msdos.batch,alt.msdos.batch.nt,fidonet.batpower
Subject: Re: Extract File_id.diz & Save As Same Name As Zip File
References:
In-Reply-To:
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 56
Message-ID:
Date: Sun, 10 Feb 2008 18:30:57 GMT
NNTP-Posting-Host: 82.11.225.61
10 Feb 2008 18:30:57 GMT)
NNTP-Posting-Date: Sun, 10 Feb 2008 18:30:57 GMT
Bytes: 3023
Xref: number1.nntp.dca.giganews.com alt.msdos.batch:93238
alt.msdos.batch.nt:42173 fidonet.batpower:565
Todd Vargo wrote:
> Todd Vargo wrote:
>> Richard Bonner wrote:
>>> FileGod wrote:
>> ...
>>>> I decided to write a bacth file that...
>>>> grabs the File_id.diz from zip files & save them as the same name as
> the
>> zip
>>>> files but with the extention .diz since there have been a lot of files
> I
>>>> downloaded more than once, these are automating batch files so do not
>> type in
>>>> a file name when running these batch files...
>>> (Snip)
>>>
>>> *** I may be misunderstanding what you are doing, but can one not
> just:
>> I distilled FileGod's text to hopefully help with your confusion.
>>
>> File_id.diz represents a non-static name nor the same basename as the zip,
>> hence, his code is intended to extract *.diz from the zip and rename it to
>> the basename of the zip.
>
> Correction: File_id.diz is a static name.
>
>> FWIW, I don't find it of particular interest to me.
>
> BTW, the following single batch performs what FileGod used 2 batch files to
> accomplish and without need to clean up the double .zip.diz extensions.
>
> Note, like FileGod's code, this batch only operates on 8.3 filenames as I
> don't find the batch of particular use to bother including LFN with spaces
> support.
>
> @echo off
> if not (%1)==() goto GetDiz
> if exist File_id.diz del File_id.diz
> md Diz's
> for %%a in (*.zip) do call %0 %%a
> rd Diz's
> set basename=
> goto end
> :GetDiz
> cd Diz's
> echo.>%1
> ren %1 *.
> for %%? in (*.*) do set basename=%%?
> del %basename%
> cd..
> pkunzip -e %1 File_id.diz
> ren File_id.diz %basename%.diz
> :end
>
Interesting yrmp folder name there!
|