Automate FTP sessions with Windows

You’d like to upload some files from a PC running Windows via FTP to another server every now and then? It’s as easy as:

  • saving the appropriate FTP commands in a text file
  • using Windows’ built-in ftp command along with the text file
  • adding a task to the at scheduler.

Let’s have a look at this.

Continue reading →

Dynamic menu for your WordPress theme

I have found various descriptions about a dynamic navigation menu in a WordPress theme. What I’ve seen these solutions grab some pages and display the result either in the header or sidebar of the theme. It’s called dynamic because you can add pages to your blog and – depending on the implementation – a link to the appropriate page will appear in the menu.

Continue reading →

Follow meta refresh with Commons HttpClient

Having to check the title tag from a lot of different websites I needed a tool that would follow HTTP redirects as well as redirects in meta refresh tags. As a fan of Commons HttpClient, I hacked together some code that does the work.

For the impatient: check out the code here.

Continue reading →

Deleting files older than a week under Windows

If you’re running a Windows server and want to delete files that are older than, say, a week then Visual Basic comes to the rescue. Once you’ve got the script running you’d like Windows to start it every day so you don’t have to do this manually: at will be your friend here.

Continue reading →