<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ZenMojo.com &#187; Scripts</title>
	<atom:link href="http://zenmojo.com/blog/category/scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://zenmojo.com/blog</link>
	<description>Just another blog about nothing</description>
	<lastBuildDate>Thu, 08 Jul 2010 14:02:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Script to Mount / Unmount TrueCrypt Volumes</title>
		<link>http://zenmojo.com/blog/2009/04/15/script-to-mount-unmount-truecrypt-volumes/</link>
		<comments>http://zenmojo.com/blog/2009/04/15/script-to-mount-unmount-truecrypt-volumes/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 18:48:59 +0000</pubDate>
		<dc:creator>Zen</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[TrueCrypt]]></category>

		<guid isPermaLink="false">http://zenmojo.com/blog/?p=79</guid>
		<description><![CDATA[Improved on a script to mount a TrueCrypt Volume on Windows]]></description>
			<content:encoded><![CDATA[<p>I found a great article about a script to mount a TrueCrypt Volume on Windows <a href="http://www.allthingsmarked.com/2006/09/30/howto-securely-open-truecrypt-volumes-in-one-click-redux/" target="_blank">here</a>.  It also detailed a script to unmount the volume.</p>
<p>I decided to improve on it a bit, and allow the same script to mount and unmount the volume (by testing to see if the volume is mounted).  I did not include his password parameter because TrueCrypt will ask for the password anyway.  And I really don&#8217;t want to code my password into any script.</p>
<p>So here is the script:</p>
<blockquote><p>REM TrueCrypt mounting script (version 2)<br />
REM Based on script Written by Mark Ursino (allthingsmarked.com)<br />
REM Modified by Zen (Zenmojo.com)<br />
REM Modifications are allowed, but please include these comments<br />
@echo off</p>
<p>set TrueSource=I:\TrueCrypt\truecrypt<br />
set Source=I:\volume.cab<br />
set Drive=O:</p>
<p>IF EXIST &#8220;%Drive%&#8221; goto unmount</p>
<p>:mount<br />
cls<br />
&#8220;%TrueSource%&#8221; /v &#8220;%Source%&#8221; /l &#8220;%Drive%&#8221; /m /a /p /q<br />
explorer.exe &#8220;%Drive%&#8221;<br />
cls<br />
goto end</p>
<p>:unmount<br />
cls<br />
&#8220;%TrueSource%&#8221; /d&#8221;%Drive%&#8221; /q<br />
cls<br />
goto end</p>
<p>:end<br />
cls</p></blockquote>
<p>Notes:<br />
<em>TrueSource</em> is the location of your truecrypt.sys file (from the stand-alone version of TrueCrypt)<br />
<em>Source</em> is the source of your TrueCrypt file<br />
<em>Drive</em> is the drive letter you want to mount the file to</p>
<img src="http://zenmojo.com/blog/?ak_action=api_record_view&id=79&type=feed" alt="" /><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fzenmojo.com%2Fblog%2F2009%2F04%2F15%2Fscript-to-mount-unmount-truecrypt-volumes%2F&amp;linkname=Script%20to%20Mount%20%2F%20Unmount%20TrueCrypt%20Volumes"><img src="http://zenmojo.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://zenmojo.com/blog/2009/04/15/script-to-mount-unmount-truecrypt-volumes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Script to Install Macromedia Contribute Key</title>
		<link>http://zenmojo.com/blog/2007/09/05/script-to-install-macromedia-contribute-key/</link>
		<comments>http://zenmojo.com/blog/2007/09/05/script-to-install-macromedia-contribute-key/#comments</comments>
		<pubDate>Wed, 05 Sep 2007 18:51:54 +0000</pubDate>
		<dc:creator>Zen</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[Info]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://zenmojo.com/blog/2007/09/05/script-to-install-macromedia-contribute-key/</guid>
		<description><![CDATA[I never could find a good script to check to see if a Macromedia Contribute key had been installed for a user on a machine, and if not then to run the key.  So I made one.  This one is for Contribute 2, but I think it will work with 3 (if you [...]]]></description>
			<content:encoded><![CDATA[<p>I never could find a good script to check to see if a Macromedia Contribute key had been installed for a user on a machine, and if not then to run the key.  So I made one.  This one is for Contribute 2, but I think it will work with 3 (if you change the Site folder to 3).  And it assumes that the user will only be running one Site. I make the Contribute Icon/Shortcut point to this script.</p>
<p>You will need to change &#8220;h:\key.stc&#8221; to the location of your key.  You will need to save the following script as a .vbs</p>
<p>Set objFSO = CreateObject(&#8221;Scripting.FileSystemObject&#8221;)<br />
Set objNetwork = WScript.CreateObject(&#8221;WScript.Network&#8221;)<br />
strUserName = objNetwork.UserName<br />
If objFSO.FileExists(&#8221;C:\Documents and Settings\&#8221; &#038; strUserName &#038; &#8220;\Local Settings\Application Data\Macromedia\Contribute 2\Sites\Site1\_mm\contribute.xml&#8221;) Then<br />
Set wshShell = WScript.CreateObject (&#8221;WSCript.shell&#8221;)<br />
wshshell.run &#8220;&#8221;"C:\Program Files\Macromedia\Contribute 2\Contribute.exe&#8221;"&#8221;, 6, True<br />
set wshshell = nothing<br />
Wscript.Quit<br />
Else<br />
Wscript.Echo &#8220;Your Contribute Key needs to be installed on this computer.  Click OK to begin.&#8221;<br />
Set wshShell = WScript.CreateObject (&#8221;WSCript.shell&#8221;)<br />
wshshell.run &#8220;h:\key.stc&#8221;, 6, True<br />
set wshshell = nothing<br />
End If</p>
<p>References:<br />
1) <a target="_blank" href="http://www.microsoft.com/technet/scriptcenter/resources/qanda/jun05/hey0620.mspx">http://www.microsoft.com/technet/scriptcenter/resources/qanda/jun05/hey0620.mspx<br />
</a>2) <a target="_blank" href="http://weblogs.asp.net/steveschofield/archive/2004/03/14/89240.aspx">http://weblogs.asp.net/steveschofield/archive/2004/03/14/89240.aspx</a><br />
3) <a target="_blank" href="http://www.computerperformance.co.uk/Logon/Logon_HomeDirAdv.htm">http://www.computerperformance.co.uk/Logon/Logon_HomeDirAdv.htm</a><a target="_blank" href="http://www.microsoft.com/technet/scriptcenter/resources/qanda/jun05/hey0620.mspx"><br />
</a></p>
<img src="http://zenmojo.com/blog/?ak_action=api_record_view&id=36&type=feed" alt="" /><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fzenmojo.com%2Fblog%2F2007%2F09%2F05%2Fscript-to-install-macromedia-contribute-key%2F&amp;linkname=Script%20to%20Install%20Macromedia%20Contribute%20Key"><img src="http://zenmojo.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://zenmojo.com/blog/2007/09/05/script-to-install-macromedia-contribute-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
