Technology, life, programming, travel and money.

Posts Tagged ‘script’

Script to produce iPhone app icons at different sizes

Script to produce iPhone app icons at different sizes

The tools for writing iPhone software are really easy to use, and allow you to concentrate on the coding rather than on obscure configuration problems. But one area of iOS development that I found a little tedious whilst writing my Solar Balls game was producing Apple’s mandatory and optional icons, which need to be in a variety of sizes. [...]

DOS: Get the directory name from a file path

DOS: Get the directory name from a file path

If you need to write a DOS batch file that takes a file path as an input parameter and needs to do something to other files in the same directory as the input file then you’ll find there is no easy way to get the file’s directory name into a variable. You could pass in the directory name as a separate parameter but that seems like [...]

Converting file extensions to lower case

Recently I needed to convert a large number of photo file extensions to lower case. Doing this manually would take ages and wouldn’t be a fun job. I wrote a quick batch file to look through all the sub-directories from the one it is executed from and change selected file extensions to lower case. To use this script place the below code in [...]

FTP uploading a directory of files using perl

Here is a simple script to upload the files which are in a particular directory. I use something similar to automate the file uploading for my tube walking blog. Whenever I take photos for the blog I put them into a directory with the current date as the directory name. So I have a structure like [...]

Backup / restore of last modified and created file time attributes on Windows

Last month I found that I needed to be able to backup and restore the last modified and created file times of a load of files in Windows XP. This is probably a bit of an obscure thing to need to do so naturally I couldn't find any existing tools to do it. I've therefore made a Perl script to allow this to be done. Just so you are clear, this [...]