From the category archives:

BAT Files

Get started with Windows Powershell

June 11, 2010
Thumbnail image for Get started with Windows Powershell

I have been avoiding it for a long time. I know batch files, and VB script so well that I am not in the mood to learn a totally different scripting language. As each day passes Microsoft is slowly phasing out their support for VB Script. Eventually Power Shell will be the only way to [...]

Read the full article →

FTP files automatically

April 30, 2010
Thumbnail image for FTP files automatically

I have a group of log files that I need to upload every day to an archival server. For a long time I have been doing this by hand. I wanted a way to do this without using any extra software – just the default tools available in windows. I found a clean solution that [...]

Read the full article →

Send mail from your bat files

November 17, 2009
Thumbnail image for Send mail from your bat files

Two weeks ago, I wrote about backing up a remote windows machine using Remote Desktop. One thing lacking from this solution is email notification. How do we know if the backup job started? Or finished? There is a free and open source tool that can be used to solve this problem, it is called blat. [...]

Read the full article →

Date and time stamp in your batch files

November 11, 2009
Thumbnail image for Date and time stamp in your batch files

Update 11-12-2009: Looks like I made a typo. The date should be extracted with this line: %date:~-4,4%%date:~-10,2%%date:~-7,2% I have updated the article below, and thanks to Jim.G for noticing it! There has been some activity recently in an old 2007 post I wrote about creating a date and time stamp in your batch files. Well, [...]

Read the full article →

Secure remote backup using remote desktop

November 5, 2009
Thumbnail image for Secure remote backup using remote desktop

I have been playing around with a few ideas on how to backup a server I have that is on the other side of town. One of the problems I have is that the Internet provider blocks VPN traffic, and most other ways I know of getting a secure connection. The one thing I can [...]

Read the full article →

Free Tool – Suspend from the command line

September 22, 2009

I have a system task schedule that wakes up my system at night, runs a few backup processes…and then shuts the computer down. What I really wanted it to do was to suspend, or hibernate. That way I can get back into my computer quick when I come back in the morning. After searching around, [...]

Read the full article →

Write a script to find and delete a file

June 17, 2009

I distributed a test version of Remote Control 4.0 across our network last week, and since it was a special debug version, it created a large number of files named debuglog.dat. I wanted an easy way to find and delete these using a batch file. I researched and was able to take parts of other [...]

Read the full article →