2013 Scripting Games: Advanced Event 1

2013 Scripting Games: Advanced Event 1

  • Comments 3
  • Likes

Summary: Dr. Scripto needs to gather all log files older than 90 days and move them to an archive location.

Microsoft Scripting Guy, Ed Wilson, is here. This is a day for the history books. Today is the first day of the 2013 Scripting Games as run by the Windows PowerShell community at www.powershell.org. Of course I am in full support mode for the Scripting Games, and I will also participate as a judge. Without further ado, here is Advanced Event 1…

An Archival Atrocity

Dr. Scripto is in a tizzy! It seems that someone has allowed a series of application log files to pile up for around two years, and they’re starting to put the pinch on free disk space on a server. Your job is to help get the old files off to a new location.

Actually, this happened last week, too. You might as well create a tool to do the archiving.

The current set of log files are located in C:\Application\Log. There are three applications that write logs here, and each uses its own subfolder. For example, C:\Application\Log\App1, C:\Application\Log\OtherApp, and C:\Application\Log\ThisAppAlso. Within those subfolders, the filenames are random GUIDs with a .log filename extension. After they are created on disk, the files are never touched again by the applications.

Remember that the Scripting Games are being hosted at www.powershell.org, so head on over there to submit your entry.

I invite you to follow me on Twitter and Facebook. If you have any questions, send email to me at scripter@microsoft.com, or post your questions on the Official Scripting Guys Forum. See you tomorrow. Until then, peace.

Ed Wilson, Microsoft Scripting Guy 

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • So what do we do with the files? Same as the beginner event?

  • Steven, you can only enroll in one track. If you've submitted for the Beginner event you won't be able to submit both. You can post further questions in the Scripting Games forum on PowerShell.org.

  • Steven, it doesn't look like the full brief is posted here.  I went to powershell.org and downloaded the instruction pdf and it tells you what to do with the files.