LordKingSquirrel.com

Automating Windows Disk Maintenance Tasks

February 12th, 2008 · No Comments

Over the weekend I was talking about people not defragging their drives or running disk cleanup on their PCs very often. I am of the opinion that most people don’t for two reasons - either they don’t know how/don’t have permissions xor it is inconvenient to do it.
For those in the second camp, here’s [...]

[Read more →]

Tags: General · The Windows Command Line

A quick tip on scripting FTP commands

September 12th, 2007 · No Comments

Ok, so this is not life changing. But if you are having trouble getting scripted FTP routines to work, this might just help.
We have a number of data publishing routines that require us to move files via FTP. In the past we have had issues with timeouts and disconnects and have struggled with methods [...]

[Read more →]

Tags: Programming

Simple (and free) file distribution - Windows Command Line goodness

August 24th, 2007 · 2 Comments

I came across a reference to the Windows utility iExpress the other day and immediately saw a use for it - replacing WinZip’s self extractor maker for some of our data distribution needs.
Now, don’t get me wrong - I love WinZip and have used it for years. But in our case, free is much [...]

[Read more →]

Tags: General · The Windows Command Line

More Windows Command Line Goodness

June 22nd, 2007 · 2 Comments

As I’ve written before, at home I use OS X, FreeBSD, and Linux for 99% of the stuff I do. I’ve also written about how to add some Unix-y stuff to the Windows command line using doskey and an alias file.
Well, add another alias to the fire:
up = systeminfo | findstr /C:”System Up Time”
This [...]

[Read more →]

Tags: The Windows Command Line

Still More Windows Command Shell Goodies - the FOR Command

April 24th, 2007 · 1 Comment

Another fun shell command is FOR. It is, from my experience, the least understood of the built-in shell commands, but could be the most useful.
The basic format of the FOR command is:
FOR %variable IN (set) DO some-command [switches] [params]
If you are using it in a batch file, you’ll need to add an extra % [...]

[Read more →]

Tags: General