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 'Advanced Event 8'

  • Remove-ImageEXIF by Milo 20 Apr 2011 04:20 AM UTC
    by 2 users

    Advanced Event 8
    5 Comments

    The 2011 Scripting Games Advanced Event 8: Use PowerShell to Remove Metadata and Resize Images

  • Advanced_8.ps1 by Justin Stokes 20 Apr 2011 03:01 AM UTC
    by 3 users

    Advanced Event 8
    2 Comments

    This is a GUI script that creates smaller copies of images without any metadata

  • Advanced8_2011.ps1 by Jason Scott 20 Apr 2011 02:07 AM UTC
    by 2 users

    Advanced Event 8
    1 Comments

  • .\ImageResizer.ps1 by Miklos Karasz 20 Apr 2011 01:52 AM UTC
    by 2 users

    Advanced Event 8
    1 Comments

    Removes metadata from selected image files and resizes them to the specified scale. The initial folder setup can be done in a dedicated window with remembering. Resize can be done in another window displaying thumbnail previews and metadata and with ResizeAll button. Destination folder can be browsed or write manually. SHARE_ prefix can be changed as paramater. These will be recorded also. WPK module is required.

  • Advanced_Event8.ps1 by Alex McFarland 20 Apr 2011 01:28 AM UTC
    by 2 users

    Advanced Event 8
    1 Comments

    Advanced Event8. Satisfies all optional and mandatory requirements, although I experienced occasional errors stripping the metadata due to GDI (errors are trapped)

  • Advanced8_2011.ps1 by Robert van den Nieuwendijk 19 Apr 2011 09:21 PM UTC
    by 2 users

    Advanced Event 8
    1 Comments

    Submission for the 2011 Scripting Games Advanced Event 8. This script uses PowerShell WPK (WPF PowerShell Toolkit).

  • ResizeImage.ps1 by Franck RICHARD 19 Apr 2011 08:27 PM UTC
    by 2 users

    Advanced Event 8
    1 Comments

    2011 Scripting Games Advanced Event 8: Use PowerShell to Remove Metadata and Resize Images

  • ConvertTo-PicstoEmail by spinlock 19 Apr 2011 08:13 PM UTC
    by 2 users

    Advanced Event 8
    1 Comments

    The less said about it the better. Didn't get the time to do much on this..so it's my shameless attempt to garner points by uploading something, rather than nothing. Loads the Modules - and points the user to where they can be downloaded from if not installed. Puts little bit of a framework picture up but not much. Taught me that if possible Powershell should stick to not graphic approaches as it seemed very unreliable - WPK crashed frequently.

  • SG2011Adv08 by Jozsef Gerse 19 Apr 2011 07:47 PM UTC
    by 2 users

    Advanced Event 8

    SG2011 Adv08 event

  • advanced8.ps1 by Tim Parkinson 19 Apr 2011 05:30 PM UTC
    by 2 users

    Advanced Event 8

    Uses powerboots to display a GUI for image directory selection and display. Has a re-usable function for exporting the image at lower quality and without metadata, using the PSImage functions. When first run it downloads and unzips these libraries local to it's own folder so as to avoid making changes elsewhere on the system. It remembers paths that are entered on the next run and allows processing of the whole folder.

  • Advanced_2011_event8.ps1 by Eddy Steenbergen 19 Apr 2011 04:01 PM UTC
    by 2 users

    Advanced Event 8

    Took me into new WIndows territory - challenging.

  • convert-imagefile by Nathan Linley 19 Apr 2011 08:11 AM UTC
    by 2 users

    Advanced Event 8

    GUI and CLI script to prepare images for sharing on the internet. Strips the metadata from the file and resizes it to the requested resolution (aspect ratio preserved). The GUI version will allow the user to save their preferences so they can customize the application between uses. CLI allows for the user to pass parameters for the file information and save location as well as resolution to convert to. GUI version shows all metadata, resolution size, output resolution and a preview of the image. Status of all operations are displayed in the status bar at the bottom of the window. The script uses imagemagick as a backend module. If this is not found in the %path% environment variable or in program files directly, the script will notify the user and load up the download page if the user wants to download.

  • AdvancedEvent8 by Nuno Mota 18 Apr 2011 08:43 PM UTC
    by 3 users

    Advanced Event 8

    This script depends on: - Windows Image Acquisition Automation Library v2.0 Tool from http://www.microsoft.com/downloads/en/details.aspx?familyid=a332a77a-01b8-4de6-91c2-b7ea32537e29&displaylang=en - PowerShell Pack from http://archive.msdn.microsoft.com/PowerShellPack If these requisites are not met, the user is taken to the webpage where he/she can download them. The script: - gets all the tag information from pictures and displays it in a label next to the picture (in the GUI); - it resizes one picture or all pictures (in the same folder) at the same time to destination folder chosen by the user (using another GUI); - when the user saves the picture, all TAG information gets removed from the picture; - when the user saves a picture, its preferences are saved into a txt file in the same folder of the script. This way, the next time he/she starts the script, those preferences are read an applied; - it uses message boxes for possible errors like no pre-requisites met or the user selecting a folder with no pictures; - it allows the user to set the initial folder to gather the images using a GUI; - it allows the user to set a different folder to save the SHARE_ images using a GUI.

  • PSExifViewer.ps1 by Simon Fuhrer 18 Apr 2011 08:20 PM UTC
    by 3 users

    Advanced Event 8
    2 Comments

    Greets to Marc :-)

  • share-imageswithoutmetadata.ps1 by David Moisan 18 Apr 2011 07:00 PM UTC
    by 3 users

    Advanced Event 8

    GUI app that lets one preview images and their metadata in a directory, then make new copies scaled for email in a separate directory. Based on Windows Forms

  • New-ShareImageTool by Peter Rossi 18 Apr 2011 04:20 PM UTC
    by 3 users

    Advanced Event 8

    # Scripting Games 2011 - Advanced Event 8 # Written By: Peter Rossi # Date Written: 18th April 2011 # Overview: # This script will allow you to specify a certain folder of images to look through. You can then select each image and view a preview of it as well as # clicking through meta data to see what information is there. # Set the percentage of the original size that you wish to resize the photos to via the slider. # Click the prepare to share or prepare to share all buttons. Prepare to share will only output the selected file. Prepare to share all will process the entire folder. # External dependancies. This script uses exiftool.exe to extract and wipe metadata. This can be downloaded from http://www.sno.phy.queensu.ca/~phil/exiftool/exiftool-8.56.zip. # I have included a routine to automatically download the exiftool.exe and install it if you don't already have it.

  • Set-Pictures by Boe Prox 18 Apr 2011 02:56 PM UTC
    by 2 users

    Advanced Event 8
    2 Comments

    My entry for Advanced Event 8 contains a few features not required for the games, but I felt that if I was going to do something like this, I might as well have some fun with it. There are 2 ways to determine both the source and destination folders, either by typing in the path in the text box (and clicking Load Pictures for source) or by clicking on Browse Folder and opening a dialog to select the folder. For the source folder, once you select the source containing the pictures, all of the pictures will be populated on the left column. Clicking on a picture will display its metadata in the far right column and display the picture in the middle box. You can then right-click on the picture in the right hand column and select to just prepare that one or you can click the prepare pictures button to process all of the pictures. Optionally, you can go to the Photo Menu and select a couple options to change the size and type for the saved pictures. A progress bar is also used along with a status bar to show where the processing is at. And lastly, all settings to include Source folder, Destination folder, photo size and type are saved to a pictureutility.ini file so the same settings can be loaded again upon start up. Keep in mind that the settings are stored in the same path of where you called the script from. This event was a lot of fun and I hope you enjoy my creation.

  • Show-Picture by Bartek Bielawski 18 Apr 2011 11:03 AM UTC
    by 2 users

    Advanced Event 8
    3 Comments

    I tried to make this script well.... perfect. ;) * It uses WPK and PSImage Tools from PowerShellPack * If you run it on computer that does not have it - it will give a try and download/ install it from network. * On XP and alike it may fail due to absence of WIA.ImageFile COM Object. It tries to create it early in the script and informs about issue. Gives a link to page where you can get it. * As XP does not support some features of WPF (been there...) it will warn about it if XP is 'detected'. * All controls are transparent, so the picture consumes as much window space as you give to it. It will grow together with window. * Some basic help available inline, more in GUI (press F1 to see it, may fail if network is not available, or at least won't be able to show one picture... ;) * Two parameters -Force (to force it work in MTA powershell.exe and Path to work around the problem of empty pictures folder) - use either. * I know it is huge, but I wanted to cover all scenarios and make it really pretty.... ;) And comment what I do here and there...

  • Advanced8_2011.ps1 by Matthew Painter 18 Apr 2011 09:31 AM UTC
    by 2 users

    Advanced Event 8
    2 Comments

    Advanced Event 8 in 2011 Scripting Games uses Windows PowerShell to remove metadata from image files and to resize those images.

  • getFileSizes by oki 18 Apr 2011 12:57 AM UTC
    by 2 users

    Advanced Event 8
    1 Comments

    Gets folder name as parameter lists all files and folders inside that folder saves data name, size, and last write to an excel file

  • Set-SharedImages.ps1 by Matthew BETTON 17 Apr 2011 07:25 PM UTC
    by 2 users

    Advanced Event 8
    1 Comments

    Set-SharedImages.ps1 uses Windows Presentation Foundation (WPF) for displaying a user interface. This Graphical User Interface allows the user to : - Browse a directory for images (*.jpg, *.bmp, *.gif, *.png) ; - Displays Metadata informations for each image ; - Prepare one image or all images. For each image : - An output resized image is generated (640 x 480) ; - Metadata informations from original image are not kept ; - New image is saved as "SHARE_[].JPG", in selected destination folder. To work correctly this script needs : - "PowerShell Community Extension" Module : if not present in the modules folder, the script displays a message to inform the user where he can find it. The Pscx module is needed for resizing operations (Import-Bitmap, Resize-Bitmap and Export-Bitmap). - "Microsoft Windows Image Acquisition Library v2.0" library : if not present, the script automatically downloads it and install it, in the script current directory. The WIA library is needed for retrieving and displaying image file metadata. The script saves parameters (Source and destination folders) in the user's registry, under HKEY_CURRENT_USER\Software\ScriptingGames2011\ShareImages. You can use $DebugPreference variable in order to display DEBUG informations. Set $DebugPreference to "Continue" and the script will display DEBUG messages.

  • get File Information by bmorrison 17 Apr 2011 06:49 PM UTC
    by 2 users

    Advanced Event 8
    1 Comments

    Prompts users for directory Prompts user for filename of CSV Gets Name/Size/last Written of specified directory

  • A-8 by Ayo Wu 16 Apr 2011 07:58 PM UTC
    by 2 users

    Advanced Event 8
    1 Comments

    Sorry. I don't know how to remove metadata.....

  • Advanced8_2011 by Glenn Sizemore 15 Apr 2011 12:18 AM UTC
    by 3 users

    Advanced Event 8
    1 Comments

    PowerShell WinForm GUI that will convert, and sanitize images to be uploaded to the web. I chose to not use any external dependencies, as a result Script will run on any system windows XP SP3 and up. Script saves user settings to the registry. This challenge was a monster, as a result I recommend you run the script before reading the code as it will help ingest everything that is going on.

  • CreateLogFile.ps1 by ICC_RyanDennis 14 Apr 2011 07:40 PM UTC
    by 2 users

    Advanced Event 8
    1 Comments

    This PowerShell script uses New-Item to create a new log file in the directory provided in the Path parameter. By providing the optional Item parameter, other types (ex: directory) can be created.