| Home | End | Back |
BATch & HTML |
| Up. August 24, 1999 - 7:30 am |
The following URL's is some that I have visit and add to this document using the above buttons.
# 137 [www.zdnet.com/pcmag/pctech/content/solutions/uu1703a.htm] - Generate HTML Code with Batch
# 138 [www.zdnet.com/pcmag/pctech/content/solutions/uu1712a.htm] - Geturl.bat's
# 139 [www.elphin.com/products/urlmenu/download.html] - www.elphin.freeserve.co.uk/urlmenus.zip
# 140 [www.zdnet.com/pcmag/issues/1519/pcmg0028.htm] - Attach Notes to Files
# 976 [call.to/peace] -
Imagine: Found yourself looking at lots of *Xqzfree_v302.zip files?
Who has downloaded that :-(#*$&@! - to my computer! - What is that?!
After hours of trying to identify each one, I wrote this in order to prevent
and automate the process.
The Batch File create a local HTML File in the %TEMP% directory - almost, just
like this you are reading. When you see a URL to keep or a file to download -
Just hit the Go-To-StartPage-Button in your Browser and Hit the button.
Tips:
1. Right-Click the IE icon. Select properties and
set the StartPage to "C:/Windows/Temp/Down.HTM#up".
2. Make a shortcut: Drag-And-Drop the Batch's icon to the system tray.
NOTE: The Batch file is only few minutes old and NOT finished! I hope my Batch writing is better than my English... :-)
@Echo off
::
:: Used: Batchman, What, Strings, Sed15 and Notepad.
::
:: %temp%\Down.TMP
:: %temp%\Down.HTM
:: %temp%\EditDown.BAT
::
::
For %%v in ("Batchman Cls 31" C: "Cd %temp%\") do %%v
If exist Down.htm Goto Add
:A new doc.
Echo {HTML}{head}{title}Downloads{/title}{/head}*{BODY bgcolor="#D6D6D9" text="#000000" link="#FF0000" vlink="#551A8B" alink="#F9FF33"}{FONT face="verdana"}{a name="up"}{/a}|sed15 "y/{}*/<>\n/">Down.htm
Echo {br}{center} {form}{input type="button" value="Add a Hyper Reference" onclick="location.href=('%0')"} or hit|sed15 "s/{/</g;s/}/>/g;s/'.:.*\\/'/;">>Down.htm
Echo {input type="button" value="[ Alt - v - s ]. Then [ Alt + F4 ]" onclick="location.href=('EDITDOWN.BAT')"}{/form}{/center}{hr}*|sed15 "y/{}*/<>\n/">>Down.htm
Echo @Echo off> EditDown.bat
Echo Notepad %%temp%%\Down.htm>> EditDown.bat
:Add 2 doc.
What s "-+ Type or paste the URL: "
If %what%!==-! For %%v in ("Del Down.htm /p" %0 ) do %%v
If %what%!==+! For %%v in ("Notepad %0" Cls EXIT) do %%v
If %what%!==! if NOT %1!==! Set what=Unknown
If %what%!==! Goto End
Echo %what%| sed15 "s/\\/\//g;" > Down.tmp
Set what=
Strings URL=read Down.tmp,1
Strings NO=linesize Down.htm
Strings what=length %NO%
If %what%!==1! Set NO=0%NO%
Set what=
Echo %NO% %1?"%URL%"| sed15 "s/^/<p># / ;s/?/[<a href=/ ;s/$/>/ ;"> Down.tmp
Echo %URL%>> Down.tmp
For %%v in (URL NO) do Set %%v=
What s " A comment to this URL: "
Echo.%what%>> Down.tmp
Set what=
Sed15 "/$/{N;s/\n//;} ;s/$/<\/a>/ ;/$/{N;s/\n/] - /;} ;s/>http:\/\//>/ ;s/>file:\/\/\//>/ ;s/$/<\/p>/ ;" Down.tmp >> Down.htm
Del Down.tmp
:End Of File %Temp%\Download.bat
For %%v in (Echo. Echo.Hit:[F5] Echo. Pause Cls EXIT) do %%v
-----------------------------------------------------------------
IE. View Source:
[ Alt ] - [ v ] - [ s ] : English - (I think?)
[ Alt ] - [ v ] - [ i ] : Danish - (IE 5)
[ Alt ] - [ v ] - [ k ] : Danish - (IE)