# Old BASIC, C and other source code

{{< snippet "old" >}}

## Source Code

I plan to move all of this to {{< snippet "jp-github" >}} at some point...


### Batch Files

See my {{< xref "../windows/winshell.html" "Windows Shell Scripting" >}} page.

-----

### (UNIX) Shell Scripts

  - [checkmd5sum](/public/source/checkmd5sum.txt)
    A trivial script to compare MD5 hashs for downloads ISOs and
    software.
  - [web](/public/source/web.txt)
    A simple wrapper for use with [GenSite.pl](perl.html#gensite).

-----

### C, (& BASIC)

See *[Dave Navarro's](http://www.basicguru.com/navarro/)* Win32 console
*[CMD Tools](http://www.cmdtools.com/)* written in BASIC.

  - [Pause.c](/public/source/pause.c.txt)
    A tiny C program that does the same thing as the DOS pause command.
  - [UUConvert.c](/public/source/uuconvert.c.txt)
    An old program that reassembles and uu-decodes binary Usenet threads
    saved by old mail readers such as Tin. I did not write this and I
    don't know who did.

-----

### Assembly `SCR` programs

  - [WrmBoot.com](/public/tools/wrmboot.com) and
    [CldBoot.com](/public/tools/cldboot.com) (16bytes)
    A Warm Boot (CTRL-ALT-DEL) and Cold Boot (same as reset switch) on a
    PC. Here is the C, BASIC, and debug .scr [source
    code](/public/source/rebt-src.html).

This [zip file](/public/source/Scr.zip) is a collection of old "scr"
programs, many collected from old computer magazines. Here is a listing:

```
ADDTOIT.SCR   Extend path environment variable to any length.
ALREADY.SCR   Run programs or batch files only ONCE a day, at the first BOOT-UP.
ANSITEST.SCR  Returns an ERRORLEVEL 0 if Ansi.sys is active, 1 if it is not.
ANTIBOOT.SCR  Disables CTRL-ALT-DEL keyboard re-boot.
AUTOASK.SCR   Returns the ASCII code of the character entered at the prompt.
AUTOCAPS.SCR  Automatically turns the CAPs lock OFF when you press the shift key.
BIGBUF.SCR    TSR to enlarge DOS's usual 15 character keyboard buffer to 127.
BUFFER.SCR    Stuffs characters into the key buffer.
CLDBOOT.SCR   Cold boot the PC.
CLEARKEY.SCR  Empty the keyboard buffer
D2H.SCR       Convert decimal numbers to hexadecimal.
ENCRYPT.SCR   Simple file encryption (use PGP or something better instead).
ESC.SCR       Inserts the escape character in batch files (eg. esc [10m).
FASTKEY.SCR   Resets the keyboard repeat rate and delay rate to the fastest possible.
FULLSCR.SCR   Script to switch DOS session to full screen in MS-Win.
H2D.SCR       Convert hexadecimal numbers to decimal.
ISAREADY.TXT  Detail and batch files with a utility to test if Drive a: is ready.
ISAREADY.SCR  Utility to test if Drive a: is ready.
KEYCODE.SCR   Returns the ASCII and scan codes for pressed keys.
MEGSFREE.SCR  Returns an ERRORLEVEL = to the number of free megs.
NOPRSCR.SCR   Turns OFF the prn-scr key.
NOSOUND.SCR   Disable your PC's internal speaker.
NOWAIT.SCR    Resets the number of re-tries BIOS makes to the printer.
NUMLOCK.SCR   Toggles the numlock key.
PRSCR.SCR     Turns ON the prn-scr key.
PRTLOG.SCR    Toggle print logging of the command line.
REBOOT.SCR    Warm boot the PC.
RENDIR.SCR    Rename directories.
SHIFTKEY.SCR  Change the bypass autoexec.bat key in Windows.
SHIFTMOD.SCR  Make " , " & " . " keys "unshifted".
WAIT.SCR      Timed pause.
```

-----

### Other

Here's a very [simple awk script](/public/source/ascii2html.txt) to
prepare text for inclusion into a HTML file by changing URL's in a
plain-text file into into HTML links to that URL. I'm not really sure
who wrote it, but I didn't.

See this [zip file](/public/source/date_related_source_code.zip) for
some date and time related code and routines. I didn't write any of this
either.

-----

## Documents

  - [Information about various Windows File
    Systems](/public/filesys.html)
  - [CIDR/Subnet Mask Quick Reference Chart (Excel)](/public/cidr.xls)
  - [Old, but well written and informative PGP Documentation (\~ 160k
    ZIP)](/public/crypto.zip)
  - [How to run Netware 3.x and 4.x on the same test
    server](/public/multinetware.html)
  - [Old, but interesting debate about GIF v.
    JPEG](/public/imaginfo.txt)

{{< snippet "old" >}}
