<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/windows</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 24 May 2013 12:27:57 GMT</pubDate>
<item>
<title>(DOS Batch) 7zip commandline builder for zipping extensions in an svn repository - lookmatters</title>
<link>http://snipplr.com/view/69190/7zip-commandline-builder-for-zipping-extensions-in-an-svn-repository/</link>
<description><![CDATA[ <p>7zip commandline builder for zipping extensions in an svn repository</p> ]]></description>
<pubDate>Fri, 21 Dec 2012 04:47:35 GMT</pubDate>
<guid>http://snipplr.com/view/69190/7zip-commandline-builder-for-zipping-extensions-in-an-svn-repository/</guid>
</item>
<item>
<title>(PHP) Get current URL with PHP in Apache or IIS - rickygri</title>
<link>http://snipplr.com/view/69136/get-current-url-with-php-in-apache-or-iis/</link>
<description><![CDATA[ <p>Get Current URL Path on Apache / IIS</p> ]]></description>
<pubDate>Tue, 18 Dec 2012 00:24:54 GMT</pubDate>
<guid>http://snipplr.com/view/69136/get-current-url-with-php-in-apache-or-iis/</guid>
</item>
<item>
<title>(DOS Batch) Registrar manualmente DLL en windows - thescorpion</title>
<link>http://snipplr.com/view/68034/registrar-manualmente-dll-en-windows/</link>
<description><![CDATA[ <p>Registro manual de una libreria o proceso DLL en windows</p> ]]></description>
<pubDate>Wed, 31 Oct 2012 04:58:16 GMT</pubDate>
<guid>http://snipplr.com/view/68034/registrar-manualmente-dll-en-windows/</guid>
</item>
<item>
<title>(Other) Shutdown/Restart Windows - gaserland</title>
<link>http://snipplr.com/view/67613/shutdownrestart-windows/</link>
<description><![CDATA[ <p>command to shutdown / restart windows</p> ]]></description>
<pubDate>Fri, 05 Oct 2012 04:47:06 GMT</pubDate>
<guid>http://snipplr.com/view/67613/shutdownrestart-windows/</guid>
</item>
<item>
<title>(Python) Getting shovel to work in windows so python methods can be run like individual executables - pckujawa</title>
<link>http://snipplr.com/view/66267/getting-shovel-to-work-in-windows-so-python-methods-can-be-run-like-individual-executables/</link>
<description><![CDATA[ <p>I had hear about a method to run a method like an executable, with the arguments being passed in from the commandline. Apparently, Ruby has this with the Rake project. Well, Python has it with [Shovel](http://devblog.seomoz.org/2012/03/shovel-rake-for-python). Only the instructions didn't work for me on windows, so I had to create a batch script to call `shovel` correctly.

So here's my setup. I installed shovel using `easy_install shovel`, which placed it in my python scripts folder (C:\Python27\Scripts, which is in my PATH). I created 'shovel.bat' (see source) in the same folder. So now I can call `shovel` from anywhere and it will call my batch file, passing the parameters into shovel.

For completeness, here is my working directory structure (note the subfolder called shovel):

	D:.
	│   song log.log
	│   Untitled_10.mp3
	│   Untitled_11.mp3
	│   Untitled_2.mp3
	│   Untitled_3.mp3
	│   Untitled_4.mp3
	│   Untitled_5.mp3
	│   Untitled_6.mp3
	│   Untitled_7.mp3
	│   Untitled_8.mp3
	│   Untitled_9.mp3
	│
	└───shovel
	        tasks.py

My python script is incomplete but can be run by shovel using `shovel tasks.extractSongInfo "log file name.log"` from the directory above the 'shovel' directory. Here's the script:


	from shovel import task
	
	@task
	def extractSongInfo(logFile):
	    """Given a log file with lines like
	"{date}	INFO	 Currently playing - Song: {songName} - Artist: {artist} - Length: {numSeconds}"
	return a collection of extracted info."""
	    opId = "Extracting song info" # operation ID
	    print opId
	    print 'Done: ' + opId</p> ]]></description>
<pubDate>Sun, 22 Jul 2012 07:44:22 GMT</pubDate>
<guid>http://snipplr.com/view/66267/getting-shovel-to-work-in-windows-so-python-methods-can-be-run-like-individual-executables/</guid>
</item>
<item>
<title>(DOS Batch) Put windows to sleep (and keep it asleep!) - Rectifier</title>
<link>http://snipplr.com/view/65888/put-windows-to-sleep-and-keep-it-asleep/</link>
<description><![CDATA[ <p>This is a fraction of a much larger script which does multiple tasks. This scriptlet is intended to be interactive and somewhat user-friendly. First, it asks if you want to place the computer into sleep mode, then it kills pesky processes associated with interrupting sleep mode, finally, if you want the batch to skip waiting you can press Y to immediately start the sleep sequence or press N to cancel at the last second.</p> ]]></description>
<pubDate>Sun, 01 Jul 2012 06:24:51 GMT</pubDate>
<guid>http://snipplr.com/view/65888/put-windows-to-sleep-and-keep-it-asleep/</guid>
</item>
<item>
<title>(DOS Batch) Save (and clear) Windows Event Logs - Rectifier</title>
<link>http://snipplr.com/view/65885/save-and-clear-windows-event-logs/</link>
<description><![CDATA[ <p>Uses the sysinternals (microsoft) utility PsLogList to save specified event logs to files and then clears them. Method can be used to save logs as .evt and .evtx. This script has four event logs listed as an example and has a template command commented. Tested on a local windows 7 machine, but should work for xp, server 2k3 and 2k8.</p> ]]></description>
<pubDate>Sun, 01 Jul 2012 03:54:14 GMT</pubDate>
<guid>http://snipplr.com/view/65885/save-and-clear-windows-event-logs/</guid>
</item>
<item>
<title>(DOS Batch) Clear Windows 7 Event Log - Rectifier</title>
<link>http://snipplr.com/view/65884/clear-windows-7-event-log/</link>
<description><![CDATA[ <p>This is a simple batch script to clear the event logs from a windows 7 or server 2008 machine. The script does *not* save these logs. This was tested on a local machine but could be adapted for remote use.</p> ]]></description>
<pubDate>Sun, 01 Jul 2012 03:42:51 GMT</pubDate>
<guid>http://snipplr.com/view/65884/clear-windows-7-event-log/</guid>
</item>
<item>
<title>(C++) Kill Rising\'s popup window - breakerzhao</title>
<link>http://snipplr.com/view/64634/kill-risings-popup-window/</link>
<description><![CDATA[ <p>Terminate Rising anti-virus program's annoying ad. popup window process "popwndexe.exe", remove from its config file "RsMgrsvc.ini".</p> ]]></description>
<pubDate>Thu, 19 Apr 2012 01:30:32 GMT</pubDate>
<guid>http://snipplr.com/view/64634/kill-risings-popup-window/</guid>
</item>
<item>
<title>(Visual Basic) _Snippet-AllWindowsCrawler.vbs - RobertHirabayashi</title>
<link>http://snipplr.com/view/63186/snippetallwindowscrawlervbs/</link>
<description><![CDATA[ <p>This script is a wrapper for delivering code to every computer object in a domain, and outputs the results to a time code stamped text or CSV file. Every computer is pinged to determine if it is up prior to running the payload, to prevent wasted time.</p> ]]></description>
<pubDate>Thu, 09 Feb 2012 08:48:04 GMT</pubDate>
<guid>http://snipplr.com/view/63186/snippetallwindowscrawlervbs/</guid>
</item>
<item>
<title>(DOS Batch) Import svn repository dump - altern</title>
<link>http://snipplr.com/view/62093/import-svn-repository-dump/</link>
<description><![CDATA[ <p>script imports svn dump into the repository</p> ]]></description>
<pubDate>Thu, 22 Dec 2011 22:22:25 GMT</pubDate>
<guid>http://snipplr.com/view/62093/import-svn-repository-dump/</guid>
</item>
<item>
<title>(DOS Batch) Create svn repository dump - altern</title>
<link>http://snipplr.com/view/62092/create-svn-repository-dump/</link>
<description><![CDATA[ <p>Batch script creates repository dump of specific project in repository. It assumes that repository has following structure:

    /project1
        /trunk
        /tags
        /branches

    /project2
        /trunk
        /tags
        /branches
    ...
    /projectN
        /trunk
        /tags
        /branches

Needs UnxUtils installed to be executed successfully(http://unxutils.sourceforge.net/)</p> ]]></description>
<pubDate>Thu, 22 Dec 2011 22:04:54 GMT</pubDate>
<guid>http://snipplr.com/view/62092/create-svn-repository-dump/</guid>
</item>
<item>
<title>(DOS Batch) Create initial svn repository structure - altern</title>
<link>http://snipplr.com/view/62091/create-initial-svn-repository-structure/</link>
<description><![CDATA[ <p>Batch script creates initial svn repository structure according to SCM framework (http://scm.altern.kiev.ua):
    /project
        /trunk
        /tags
            /builds
                /PA
                /A
                /B
            /releases
                /AR
                /BR
                /RC
                /ST
        /branches
            /support
            /releases
            /experimental
            /feature</p> ]]></description>
<pubDate>Thu, 22 Dec 2011 21:53:48 GMT</pubDate>
<guid>http://snipplr.com/view/62091/create-initial-svn-repository-structure/</guid>
</item>
<item>
<title>(DOS Batch) svn add recursively on windows - altern</title>
<link>http://snipplr.com/view/62067/svn-add-recursively-on-windows/</link>
<description><![CDATA[ <p>'svn add' all unversioned files in a working copy to svn repository recursively on windows</p> ]]></description>
<pubDate>Thu, 22 Dec 2011 01:56:28 GMT</pubDate>
<guid>http://snipplr.com/view/62067/svn-add-recursively-on-windows/</guid>
</item>
<item>
<title>(DOS Batch) Viewing an image under Windows 7 from a command line - m1b</title>
<link>http://snipplr.com/view/59901/viewing-an-image-under-windows-7-from-a-command-line/</link>
<description><![CDATA[ <p>Useful to open an image for viewing from the command line under Windows, in this example the image is generated by the GraphViz dot command.</p> ]]></description>
<pubDate>Tue, 18 Oct 2011 08:52:54 GMT</pubDate>
<guid>http://snipplr.com/view/59901/viewing-an-image-under-windows-7-from-a-command-line/</guid>
</item>
<item>
<title>(Windows Registry) Add TheGun editor to your registry - johngh</title>
<link>http://snipplr.com/view/58617/add-thegun-editor-to-your-registry/</link>
<description><![CDATA[ <p>TheGun is a great Windows Notepad replacement, but it's a bit painful in how it registers itself when you choose it to open a file.
If you save it in "C:\Program Files\TheGun\THEGUN.EXE" and add something this to your registry, it should work nicely.</p> ]]></description>
<pubDate>Tue, 13 Sep 2011 03:10:03 GMT</pubDate>
<guid>http://snipplr.com/view/58617/add-thegun-editor-to-your-registry/</guid>
</item>
<item>
<title>(C#) Provide standard progress dialog for file operations - TheBarrett</title>
<link>http://snipplr.com/view/58430/provide-standard-progress-dialog-for-file-operations/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 03 Sep 2011 22:20:17 GMT</pubDate>
<guid>http://snipplr.com/view/58430/provide-standard-progress-dialog-for-file-operations/</guid>
</item>
<item>
<title>(Windows PowerShell) Convert every music file into 192kbps mp3 in a given \"targetdir\" folder with ffmpeg on Windows - shadevampire</title>
<link>http://snipplr.com/view/58152/convert-every-music-file-into-192kbps-mp3-in-a-given-targetdir-folder-with-ffmpeg-on-windows/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 25 Aug 2011 07:50:03 GMT</pubDate>
<guid>http://snipplr.com/view/58152/convert-every-music-file-into-192kbps-mp3-in-a-given-targetdir-folder-with-ffmpeg-on-windows/</guid>
</item>
<item>
<title>(ActionScript 3) Flex Mobile Popup List Window - mcorlan</title>
<link>http://snipplr.com/view/57729/flex-mobile-popup-list-window/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 11 Aug 2011 00:24:13 GMT</pubDate>
<guid>http://snipplr.com/view/57729/flex-mobile-popup-list-window/</guid>
</item>
<item>
<title>(C++) Reliably Checking Windows Bitness (32-bit or 64-bit) With C++ - shadevampire</title>
<link>http://snipplr.com/view/57165/reliably-checking-windows-bitness-32bit-or-64bit-with-c/</link>
<description><![CDATA[ <p>See on the source (url)</p> ]]></description>
<pubDate>Wed, 27 Jul 2011 01:55:47 GMT</pubDate>
<guid>http://snipplr.com/view/57165/reliably-checking-windows-bitness-32bit-or-64bit-with-c/</guid>
</item>
</channel>
</rss>