 




<?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>The VBScript Network and Systems Administrator&#039;s Cafe &#187; Scriptlet.TypeLib</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/tag/scriptlettypelib/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator</link>
	<description></description>
	<lastBuildDate>Tue, 11 Oct 2011 18:36:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Creating a unique GUID for use in your VBScripts</title>
		<link>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/creating-a-unique-guid-for-use-in-your-vbscripts/</link>
		<comments>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/creating-a-unique-guid-for-use-in-your-vbscripts/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 18:40:00 +0000</pubDate>
		<dc:creator>Jerry Lees</dc:creator>
				<category><![CDATA[GUID]]></category>
		<category><![CDATA[Scriptlet.TypeLib]]></category>
		<category><![CDATA[VBScipt]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/creating-a-unique-guid-for-use-in-your-vbscripts/</guid>
		<description><![CDATA[Today I answered a question in the ITKE unanswered questions for Word VBA on how to be certain a filename was unique across several users using it. The answer I gave answered the question, but I knew there was a way to create GUID&#8217;s within VBScript but couldn&#8217;t recall how. GUID&#8217;s are cryptic to look [...]]]></description>
				<content:encoded><![CDATA[<p>Today I answered a question in the ITKE unanswered questions for Word VBA on how to be certain a filename was unique across several users using it. The answer I gave answered the question, but I knew there was a way to create GUID&#8217;s within VBScript but couldn&#8217;t recall how.</p>
<p>GUID&#8217;s are cryptic to look at, but they are pretty much guaranteed to be unique. After some research I found the library that provides this functionality&#8230; <strong>Scriptlet.TypeLib</strong>! Below is a short script that gives you an idea of how to use it in your scripts to generate unique strings for when you need a guaranteed unique name or identifier.</p>
<p><span style="color: #0000ff">Option Explicit</span></p>
<p><span style="color: #0000ff">Dim GUID<br />
</span><span style="color: #0000ff">Set TypeLib = CreateObject(&#8220;Scriptlet.TypeLib&#8221;)<br />
GUID = TypeLib.Guid</span></p>
<p>Enjoy!</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/creating-a-unique-guid-for-use-in-your-vbscripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
