![]() ![]() The end result is a small Console file copy utility that I popped up on Github: (and yes that came in handy as I blew away my entire database backup folder by accident - oops!) And it'd be nice to have an option to send files to the Recycle bin just in case for operator error :-).Be able to specify a cut off date before which to delete files. ![]() Need to be able to specify a filespec (ie.So for my typical copy needs the requirements are: No more searching for a script each time :-) Now with a bit of work this can be done with PowerShell or even a complicated DOS batch file, but heck, to me it's always easier to just create a small Console application that handles this sort of thing with a full command line parser and a few extra options, plus in the end I end up with code that I can actually modify and add features to as is invariably the case. So occasionally I need to check on that server drive and clean out files. Today I realized that my SQL Server logs on my server were really piling up and nearly ran my backup drive out of drive space. It's funny, but for me the following seems to be a recurring theme: Every few months or years I end up with a host of files on my server that need pruning selectively and often under program control.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |