Windows Batch Scripts

Ever edited batch scripts on Windows (.bat files) that modify folder hierarchies and the changes don’t seem to take, no matter how correct they look? Well, chance are, they are correct and it’s Windows being lazy. I’ve found that anytime I try to delete a file with the command ‘del /rd /s [folder]’ and it fails, a good restart (yes a full machine restart, in 2011) is all that’s needed. I’ve no idea why this happens or if there’s a cleaner way to force it to delete but luckily virtual machine restarts are quick and settings save rather easily.

Leave a Reply