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!newssvr21.news.prodigy.net.POSTED!eadf9591!not-for-mail
From: 0@0.0 (FileGod)
Newsgroups: alt.msdos.batch.nt,fidonet.batpower
Subject: Zip2HTML.bat
Lines: 30
Message-ID:
NNTP-Posting-Host: 71.142.57.57
24 Apr 2008 18:38:53 EDT)
NNTP-Posting-Date: Thu, 24 Apr 2008 18:38:53 EDT
Organization: at&t http://my.att.net/
Date: Thu, 24 Apr 2008 22:38:53 GMT
Bytes: 2171
Xref: number1.nntp.dca.giganews.com alt.msdos.batch.nt:42892
fidonet.batpower:604
Well I just got my Zip2HTML.bat working & no external text files are used,
this would not work with Win 9x or lower. Heavy use of FOR /F and the Carrot
sysmbol ^ so the Greater & Less than symbols will echo, I thought this would
be harder to write & a longer batch file!.
Now to find out if this get posted properly due to the use of HTML code...
This requires PKZIP25:
http://www.google.com/search?hl=en&ie=ISO-8859-1&q=pk250c32.exe
Usage: Zip2HTML.bat>index.html
All the lines begin with a space unless it is wrapped...
@echo off
echo ^Parent Directory^
echo ^
for /f "tokens=*" %%i in ('dir/b *.zip') do (
for /f "tokens=1,2" %%j in ("%%~zni") do (
echo ^%%i^
pkzip25 -extract %%i File_id.diz>nul
echo ^
type File_id.diz
if not exist File_id.diz echo File Description Not Found
del File_id.diz
echo ^
echo %%j Bytes
echo ^
echo %%~ti
)
echo ^
)
echo Zip2HTML.bat by FileGod ^www.filegod.netfirms.com^">http://www.filegod.netfirms.com"^>www.filegod.netfirms.com^
|