Path: number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!newscon04.news.prodigy.net!prodigy.net!newsdst01.news.prodigy.net!prodigy.com!postmaster.news.prodigy.com!newssvr19.news.prodigy.net.POSTED!eadf9591!not-for-mail
From: someone@some.com (FileGod)
Newsgroups: alt.msdos.batch,alt.msdos.batch.nt,fidonet.batpower
Subject: Extract File_id.diz & Save As Same Name As Zip File
Lines: 60
Message-ID:
NNTP-Posting-Host: 71.142.194.215
10 Feb 2008 03:54:02 EST)
NNTP-Posting-Date: Sun, 10 Feb 2008 03:54:02 EST
Organization: AT&T http://yahoo.sbc.com
Date: Sun, 10 Feb 2008 08:54:02 GMT
Bytes: 3502
Xref: number1.nntp.dca.giganews.com alt.msdos.batch:93230
alt.msdos.batch.nt:42164 fidonet.batpower:560
I wrote program some time back that zips a File_id.diz save as the same name
as the zip file so I decided to write a bacth file that does the opposite &
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...
GrabDiz.bat, this runs the batch files...
Call GetDiz.bat
Rename-Diz.bat
--------------------------------------------------------------------------------------------
GetDiz.bat, the gets the File_id.diz & save it as the same name as the zip
files but the diz will have the extention .zip.diz & this is the main bact
file that does the main work...
if not (%1) == () goto GetDiz
for %%a in (*.zip) do call GetDiz %%a
goto end
:GetDiz
set Diz=%1
pkunzip -e %1 File_id.diz
ren File_id.diz %Diz%.diz
ren *.zip.diz *.diz
:end
--------------------------------------------------------------------------------------------
Rename-Diz.bat, this batch file moves the diz file to a temporary directory to
change the file extention from .zip.diz to .diz & moves the diz files back to
the original directory...
md Diz's
move *.zip.diz Diz's
cd Diz's
ren *.zip.diz *.
ren *.zip *.diz
move *.diz ..
cd..
rd Diz's
--------------------------------------------------------------------------------------------
ZipFix.bat, Oh, here is a old batch file we made in BatPower a long time ago
that does runs PKZIPFIX automatically...
if not (%1) == () goto pkzipfix
for %%a in (*.zip) do call pkzipfix %%a
goto end
:pkzipfix
pkzipfix %1
del %1
ren pkfixed.zip %1
:end
--------------------------------------------------------------------------------------------
My program that does diz the files does not work with Windows XP so I am
thinking of just writing a batch file that will diz the files, even my CD
catalog program does not work with XP so I will have to write something to
replace it unless I slap a virtual machine on the system & run 98 just to run
my DOS programs, I even had a Tic Tac Toe batch file game that ran on DOS 6.22
but it would not run on 95 or 98.
I hope this helps folks out...
http://www.filegod.netfirms.com
|