2013 Scripting Games archives 404

Welcome Forums Web Site Feedback & Assistance 2013 Scripting Games archives 404

This topic contains 4 replies, has 2 voices, and was last updated by

 
Keymaster
4 years, 9 months ago.

  • Author
    Posts
  • #12725

    Participant
    Points: 0
    Rank: Member

    From https://powershell.org/the-scripting-games when I go to view the 2013 archives they're not there.

    I wanted to help some one on the https://www.facebook.com/groups/5901799452/ Scripting guys page on facebook by showing him Teresa's (ScriptingWife) event one from last year. It would have solved his problem almost exactly.

    Will that content be restored?

    -VERN

  • #12731

    Keymaster
    Points: 7
    Rank: Member

    That content will not be restored, unfortunately.

  • #12732

    Participant
    Points: 0
    Rank: Member

    Man that's a bummer I hope she's OK with me re-posting that, to help a guy on her and Ed's facebook page.

    -VERN

  • #12733

    Keymaster
    Points: 7
    Rank: Member

    I'm sure she is. FWIW, we've made arrangements to archive Games content henceforth.

  • #12726

    Participant
    Points: 0
    Rank: Member

    This was her original script for event 1:

    < # .SYNOPSIS Moves application log files that are older than 90 days to \\NASServer\Archives. .DESCRIPTION This script was originally written for Event 1 of the 2013 Scripting Games (Beginners Track). .EXAMPLE C:\Scripts\Move-LogFiles.ps1 #>

    $files = Get-ChildItem –Path “C:\Application\Log” -Filter *.log –Recurse | Where-Object -FilterScript {$_.CreationTime –lt (Get-Date).AddDays(-90)}

    foreach($file in $files)
    {
    if(!(Test-Path -LiteralPath "\\NASServer\Archives\$($file.Directory.Name)"))
    {
    New-Item -Path "\\NASServer\Archives\$($file.Directory.Name)" -ItemType Directory -ErrorAction Stop | Out-Null
    }

    Move-Item -Path $file.FullName -Destination "\\NASServer\Archives\$($file.Directory.Name)\$($file.Name)"
    }

The topic ‘2013 Scripting Games archives 404’ is closed to new replies.