Batch file automated a clean-up job, then fouled itself by deleting the wrong directory

https://image.theregister.com/255816.jpg?imageId=255816&x=0&y=0&cropw=100&croph=100&panox=0&panoy=0&panow=100&panoh=100&width=1200&height=683

It survived testing and the boss signed off, so who was really to blame?

WHO, ME? Welcome to another installment of "Who, Me?" – the reader-contributed column in which The Register opens the working week with your tales of IT woe.

This week, meet a reader we'll Regomize as "Pascal," who once worked for a company that had just acquired its first Exchange server, home to around 600 mailboxes.

"The IT manager was keen we kept on top of the performance of the Information Store and suggested we take the box offline once a week to defrag it," Pascal told The Register.

That sounded like a sensible idea, so Pascal wrote a batch file to stop the Information Store, run eseutil /d to compact the database, delete the temporary files created during the process, and restart the service

"It tested OK and did make a difference to the size...

Copyright of this story solely belongs to theregister.com. To see the full text click HERE

Read more