Limiting Yak-shaving with Batch Files

Posted on January 24, 2008 by LJ

Welcome to Simple Productivity Blog! You may want to subscribe to my RSS feed. This will allow you to receive updates in your RSS reader every time new content is posted here. If you want to receive updates in your email, click on the envelope in the upper right corner, or use the "Subscribe" link below the blog title.

Please take some time to check out the content on the site. You may comment on any article by scrolling down and using the form at the bottom of all articles. Thanks for visiting!

Photo by deadrobot
Photo by deadrobot
I am an old DOS hack. I have used batch files for years to automate tasks. So when I ran across the article Set Up Instant Working Environments with Batch Files over at LifeHacker, I thought…”Of Course!!!!”

One of the things I suffer from is a terrible tendency to get sidetracked. Some people call it Yak Shaving. I sit down at my computer to check my calendar, and next thing I know, I’ve checked email, read blogs, fiddled with wallpaper, and myriad other things. The batch file concept seems like it will help.

Setting Up My Batch Files

Decide on Routine Tasks

The first thing I did was list the things that I do routinely on the computer. I decided on blogging, maintenance, writing, programming and weekly review.

List What Is Used During the Task

I then listed all the things I did while doing these tasks.

For example, for blogging, I bring up Notestudio (my preferred editor), Zoundry (the program I use to actually post), FireFox pointing at Flickr (for photos), and the files I use to pull reviews and quotes.

Write the Batch File and Test

I then wrote a batch file to launch these programs. I did have to do some research in how to launch things; for example, opening a folder on the hard drive requires the command ‘%SystemRoot%\explorer.exe “foldername”‘. I used basic input/output to ask questions for operations I might not want to perform all the time. The Web is full of information on how to use batch files. Really.

Results

I do have to say that this seems to be limiting my distractedness. Monday evening I got through all of my maintenance tasks quickly and easily, without having to stop and check my to-do list repeatedly to remember what else I needed to do. If it was open, I had to deal with it.


Comments (2)

 

  1. Venki says:

    LJ, I use SlickRun to launch my morning apps. I set a keyword ‘morning’ and launch a series of apps. Slick run will take care of directories of the programs. Try it out its a great program for application launching.

    http://www.bayden.com/SlickRun/

  2. [...] on my taskbar: My Documents, and a link to the folders where I store all my batch programs for quickly setting up environments. Both of these get used [...]