Monday, 1 October 2012

Try CMD Rather than BAT

Some people make use of batch files to run repetitive tasks over and over. Some set their batch files up in their Scheduled Tasks so that their PC will perform certain things at certain times. I make use of this system to have my PC RAR my data files into a backup archive at night when I’m snoozing.
In some cases, if you call several programs from one batch file you can get a stack overflow error. You can sometimes get around this by using the Windows command line interpreter rather than DOS. CMS is the Windows equivalent of COMMAND.COM and it is more robust. Windows NT/XP still have COMMAND.COM, but this is more for backward compatability. In order to run files with CMD, simply rename this from *.bat to *.cmd.
As a download recommendation, I might recommend checking out 4NT and Take Command, both tools from JPSoft. Both help expand the functionality of the command line in Windows.



Make sure to let me know in the comments below or over on our Facebook page
How you've got on and what you're planning to do next.

No comments:

Post a Comment