Geek fun - I ended my week by fixing a DOS-based PC. The need and purpose were so odd it put me in a good mood.
It was an outdoor readerboard run by a program written in 1983. Now all I need to do is find a replacement PC with an 8-bit ISA slot that will run DOS for several years. I'm tempted to use an embedded system with FreeDOS on flash and a USB2.0 to ISA adapter.
DOS batch files were a big time saver backin the day - you know 1/1/1980 or somewhere around then. They still save me keystrokes, so I'll share the ones that I write every time I get a new system:
ii.bat - ipconfig OR ipconfig/all (to retrieve your IP address, subnet, gateway, etc.)
pp.bat - ping google.com (confirms connectivity to the Internet and DNS services)
4222.bat - tracert 4.2.2.2 (confirm connectivity to one of the oldest DNS servers on the Internet, done *without* actually using DNS. If this works and pp.bat *does not* you have a DNS failure and confirmed it in 5 seconds with 2 batch files)
nn.bat - netsh wlan show networks mode=bssid (like netstumbler in DOS to show received signal from all visible wireless access points, ranked by signal strength)
You can use any text editor to create a batch file, but for simplicity and reliability make sure it's in your user's home directory (not 'Documents'). However, in a pinch you can do the following:
copy con 4222.bat <ENTER>
tracert 4.2.2.2^Z<ENTER>
That will create the file 4222.bat, as above.
You can get fancier with variables for inputs to do things like running multiple commands with pauses in between or inserting a different domain instead of 'google.com' (not all web servers respond to ICMP), but then I wouldn't remember the syntax when I have to write them on the fly with copy con on a new machine.
-- Got one you want to share?

