Scripto Bobble-head Games Logo

Welcome to PoshCode and the 2011 Scripting Games!

The Scripting Games are a special event put on by the Microsoft scripting guys. Script submissions, grading, and script archives are hosted by PoshCode.org. You may want to check out the Official Rules, and the Scripting Games Information page for event information and contest details, since this site is purely for submitting your contest entry!

Remember: You will not be able to see other user's scripts until after the deadline for an event has passed, and you will not be able to submit scripts for an event once that event has passed.

Note: If you have any problems logging in, please clear your cookies. If you still have problems, please use the "Contact Us" tab above or post directly on GetSatisfaction.

Searching for Scripts in category 'Beginner Event 9'

  • Create-LogFile by Joe D. 21 Apr 2011 06:45 AM UTC
    by 3 users

    Beginner Event 9

    Create a file with a name that is based on a date. Prompt user for new file name if it already exists.

  • Beginner_09_2011.ps1 by David Temple 21 Apr 2011 05:48 AM UTC
    by 3 users

    Beginner Event 9
    3 Comments

    The Script will create a Log File using the Year, Month and Day (i.e. 20110421.log) This Script will verify the directories configured in this script exist. If they do exist not they will be created. To modify look for the section labeled "#Directory Configuration Array" and modify accordingly. Once the Directories are verified (or created) It beings to collect the information for the local system to determine the Log File name and if it already exists. If it does it will assign a Name to the Long File using the following Year, Month, Day, Hour, Minute and Second to avoid duplication of Log File Name. It is important to note that while the script is running it will append to the created Log File. Once the Script completes and if it is run again it will create a new log file leaving the original intact. The last process to run is a LogCleanUp Function. It is currently configured to clean up Files in the Logs Directory that are older than 15 days. If this Function is not needed a Simple Comment "#" in front of the LogCleanUp Function or deletion of that line will disable it from running. To Adjust the number of days Find the LogCleanUp Function and change the $Daysback Variable accordingly.

  • New-Logfile by Bill Ehardt 21 Apr 2011 04:32 AM UTC
    by 2 users

    Beginner Event 9
    1 Comments

    Creates a new logfile based on date in a specified directory

  • beginner9_2011.ps1 by Sean Massey 21 Apr 2011 04:01 AM UTC
    by 2 users

    Beginner Event 9
    1 Comments

    Beginner Event 9. I probably made this more complicated than I needed to, but I wanted to get some practice working with functions in Powershell.

  • create-file.ps1 by Tony Richards 21 Apr 2011 03:54 AM UTC
    by 3 users

    Beginner Event 9
    2 Comments

    This script creates a log file with the current date as the file name in the current directory.

  • Beginner9_2011.ps1 by Tia 21 Apr 2011 03:04 AM UTC
    by 2 users

    Beginner Event 9
    1 Comments

    Script with log function which outputs the result to host and to the log file using year, month, and day format with .log extension. It will also promt the user for a new name if file already exist and append ".log" extension if not specified.

  • Out-Logfile by Matt_G 21 Apr 2011 02:41 AM UTC
    by 2 users

    Beginner Event 9
    1 Comments

    Creates output to a new log file. Includes example of something slightly interesting to log.

  • Beginner9_2011.ps1 by Neil Clinch 21 Apr 2011 01:47 AM UTC
    by 2 users

    Beginner Event 9

    Creates a log file that is named based on the current date in the format of YYYYMMDD.txt For example if the date is 4-20-2011 the filename is 20110420.txt The log file is created in a user specified folderpath or if omitted c:\logs If the log FolderPath does not exist you will be prompted for a valid log FolderPath. If the log file already exists in the FolderPath you are prompted to enter a unique filename.

  • B_Event_9.ps1 by Eric Pankowski 21 Apr 2011 01:26 AM UTC
    by 2 users

    Beginner Event 9
    2 Comments

    Create a log file at the specified location with a file name of the current date. File name format will be yyyyMMdd.log (ex. 20110420.log)

  • New-LogFile by Dennis W 20 Apr 2011 09:30 PM UTC
    by 2 users

    Beginner Event 9
    1 Comments

    Create a new date-stamped log file.

  • Beginner9_2011.ps1 by Albert Fortes 20 Apr 2011 09:05 PM UTC
    by 2 users

    Beginner Event 9
    1 Comments

    Create a log file based on the date current date. A string will be returned with the generated file name path.

  • Out-DatedFile by Dave Ackroyd 20 Apr 2011 09:05 PM UTC
    by 2 users

    Beginner Event 9
    1 Comments

    Scripting Games 2001 Beginner Event 9: outputs a file with a dated name

  • SG2011BE9V1.ps1 by Winfried Schoierer 20 Apr 2011 08:51 PM UTC
    by 2 users

    Beginner Event 9
    1 Comments

    This function creates an empty file with the current date (f.ex. 20110415) in the specified directory. Per default the file ending is *.txt but can be specified by an optional parameter.

  • Beg_09_TS.ps1 by Thomas 20 Apr 2011 08:36 PM UTC
    by 2 users

    Beginner Event 9
    1 Comments

    Create Logfile with intercative NMenue if File exists, offering multiple options: - Overwrite - Append Text, - Backup exiting Log - Rename -Cancel

  • Create-LogFile.ps1 by Frank ERBLAND 20 Apr 2011 07:50 PM UTC
    by 2 users

    Beginner Event 9
    1 Comments

    Create-LogFile.ps1 script creates a log file with a name following the pattern "year, month, day". It returns the full pathname of the log file on the pipeline.

  • New-LogFile.ps1 by Isaiah Jesch 20 Apr 2011 07:46 PM UTC
    by 2 users

    Beginner Event 9

    This script will create a file based on the current date. It also includes a check to see if a file with the same name already exists in the location. There is also a parameter option that allows the user to specify the path to save the log file in.

  • Beginner_Event_9 by Mohit Kataria 20 Apr 2011 07:09 PM UTC
    by 2 users

    Beginner Event 9
    1 Comments

    This script creates a daily log file in YYYYMMDD.txt format. It also checks for the existence of file and creates only when it is not present at the mentioned location. If present, if displays a message to the user for using a unique file name.

  • Beginner9.ps1 by Sadie Trest 20 Apr 2011 06:15 PM UTC
    by 2 users

    Beginner Event 9
    1 Comments

    This script creates a new cmdlet that may be used to create a log file based on the current date. The folder, filename and extension may be optionally specified. If nothing is specified, default values are used.

  • Create-DateFile.ps1 by Jay Morris - Moreski 20 Apr 2011 05:30 PM UTC
    by 2 users

    Beginner Event 9

    My Submission to Beginner Event 9

  • BeginnerEvent9.ps1 by ScriptingWife 20 Apr 2011 05:23 PM UTC
    by 4 users

    Beginner Event 9
    1 Comments

    My script for beginner event 9. This is the BEST script I have ever written. I hope it gets 5 stars, because I really tried on this one :-)

  • WC-Beginners9.ps1 by Sidewinder 20 Apr 2011 01:12 PM UTC
    by 2 users

    Beginner Event 9

    Create file labeled with the current date; prompt user for alternate name if file already exists

  • BE_9.PS1 by Ken 20 Apr 2011 12:58 PM UTC
    by 2 users

    Beginner Event 9

    Use PowerShell to Create file based on date

  • Out-Logfile by Mark Stam 20 Apr 2011 11:53 AM UTC
    by 2 users

    Beginner Event 9

    A function which stores input from the pipeline in a logfile

  • Beginner9_2011_andre.gibel.ps1 by Andre Gibel - CH 20 Apr 2011 08:16 AM UTC
    by 3 users

    Beginner Event 9
    1 Comments

    Beginner9_2011_andre.gibel.ps1

  • Create-Log.ps1 by Klaas 20 Apr 2011 06:58 AM UTC
    by 2 users

    Beginner Event 9

    Creates a file in C:\scripts\log with the date as name. ex: 20110420.log If this file already exists, you can choose to overwrite the file, to create a new one with the time added, ex: 20110420-1130.log or to cancel the creation.