Wherein we take the multithread concept, and run like blazes.
Entries Tagged as 'scripting'
Multithreading in Batch Script, Part 2: Running Code
May 22nd, 2008 · 2 Comments
Tags: Batch Scripts
Multithreading in Batch Script, Part 1: An Example
May 22nd, 2008 · No Comments
Multithreaded applications have the potential to run much faster than single-threaded applications, given the right circumstances. With batch scripts, we often write routines that spend a lot of their time waiting for other things to finish; downloading sets of files, for example, or pinging a range of servers to see if they are alive. Blocking [...]
Tags: Batch Scripts
Recursion in Batch, Part 2: a tree command
May 21st, 2008 · No Comments
FileTree is a rewrite of the Tree.com command. FileTree started off as a simple example of recursion, but turned out to be 2K long–so play with it if you wish. It turned out much better than I had anticipated; and it uses some Batch geek tricks to make things work. Treeing is the quintessential recursive [...]
Tags: Batch Scripts · dev · scripting
Recursion in Batch, Part 1: An Example
May 21st, 2008 · No Comments
Recursion is one of those epiphanous things; people don’t seem to grasp it at first, but once you do; it can streamline a lot of problems. I started jotting down an illustration of recursion for a coworker, and it got complicated, and then it turned into an application, so you get two. Both are batch [...]
Tags: Batch Scripts · dev · scripting
How to close open files on a server share
May 17th, 2008 · 2 Comments
One of our departments needed to upgrade software on a number of their servers, but it is an application that users like to leave running when they leave at night, and the connected files keep the upgrade from working. They needed to close thousands of open files in the application shares on several hundred servers.
They [...]
Tags: Batch Scripts · dev · scripting
Timezones from the Commandline
May 16th, 2008 · No Comments
Timezones need to be set, sometimes. We move machines all over the country, and they need to be right when they get there. We’ve used various scripts in various languages to set the time and the timezones, but there is also a hard-to-find command line that will accomplish the task.
Tags: Batch Scripts