Wednesday, October 19, 2005

Monad and the command console

One of the things many old command line junkies got used to (in the MS environment anyway) was the CON: pseudo-file. Doing a "Copy CON: " is a common action in cmd.exe (and which most admins will have used at one time or another. Monad however, does not implement these CON: pseudo file. To get around that, based on a newsgroup post from "/\\/\\o\\/\\/", I've written a sample script (CopyfromConsole.msh) which I've added up on my Monad Sample Scripts page.

The script also defines an alias (copycon), and you can add both to your profile.msh. This script does wimp out a bit, and uses out-file to prompt for the output file name should you forget it. I should do a better job of prompting - maybe in Version 2!

No comments: