Day of messing around with DOS prompts

The Easter weekend is a busy time! Now that all choir/organ work is over for today, my usual brand of exam practice/procastination is free to take over. Seeing as I'm working on a computer running Win7 today, I thought I'd experiment with DOS prompts (after xmonad, it's weird working without a terminal...), and found doskey, which is a useful way of setting aliases for the DOS prompt without having to write a .bat file (only works for the one prompt instance, though).

Syntax:
doskey macroname=command

Also, can create a tmp.bat file with recently-invoked commands:
doskey /history > tmp.bat

Save doskey macros to a file:doskey /macros > filename

Load doskey macros into memory:
doskey /macros > filename

Being a Windows n00b, I did not know about .bat files, but after a little poking around, I can see that they could be quite useful! (the problem as ever is learning enough syntax to do cool things)


Hello cute little 'Hello World' program in .bat scripting:
@ECHO off
ECHO Hello World!
PAUSE


I am considering installing some kind of shell for cmd.exe; I have tried using Cygwin and in my experience it's buggy, but recommended alternatives include the console that comes with Git for Windows, Console (another open source terminal emulator for Windows, which I tried before and was OK) or Powershell, some syntax of which I might learn. Can't hurt to make my Windows experience as close to a CLI as possible...

Doing Psychology past papers at the moment; on the subject of memory: http://www.nytimes.com/2011/07/15/health/15memory.html

Comments

Popular posts from this blog

Practicing my rusty Tamil

On creative endeavours, and self-belief, and vision.

Believing without seeing