Sam's notebook

Deleting files with special characters in their names, in Windows September 28th, 2012, 10AM


A couple of directories in Windows couldn’t be deleted by Windows Explorer, because they had unprintable characters (I’m assuming) in their names. D:\tmp>dir Volume in drive D is Data Volume Serial Number is 8C47-34BD Directory of D:\tmp 28/09/2012 11:34 AM . 28/09/2012 11:34 AM .. 26/10/2010 01:51 PM 954321. 0 File(s) 0 bytes 3 Dir(s) […]

[No comments] [Keywords: , , , , , , ] [Permanent link]

Getting a proper %DATE% variable in batch files September 13th, 2012, 2PM


Windows batch files are hideous things, if one is used to *nix shell scripting. Everything feels wrong! Of course, that’s mostly just because they have a different syntax… but sometimes it’s because they are wrong. Date formatting, for instance. There’s an environment variable, %DATE%, that holds the current date, but it’s formatted to the current […]

[No comments] [Keywords: , , , , , , , ] [Permanent link]