Anyone know of a good in expensive package that will record the keystrokes for a package in a DOS window? I have Wintask, however the record feature doesn't work in a DOS window, other than that Wintask works great.
I'm a firm believer in using WinTask to automate processes. However, automating a DOS box is about the only tough thing there is to do in WinTask; you have to tell it each keystroke using a "SendKeys" command. The following is a really basic example of how to run a directory command using a DOS box in Windows NT or 2000:
'Use Shell to launch an application - Win NT and 2000
'Here all the sendkeys you want in the Dos box
If you are working with a DOS window, do you really need anything more complex than a batch file, possibly even launched by the scheduler? That solution is free. I guess that is only good for performing tasks and not verifying them, but it's still worth a thought.
Download cygwin, and use 'expect'. Just make sure you put cygwin/bin in your path, and you can write a complex interactive scripts without any fancy tools. You can put it in debug and dump out the entire contents to a local file, which you can parse through using perl. People recommend using the original expect (tcl based) over perl's expect module. That's how I designed mine to do nightly builds and interact with prompts.