<?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>VBScript | Automation Dojos</title>
	<atom:link href="https://www.automationdojos.com/category/programming/vb-script/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.automationdojos.com/category/programming/vb-script/</link>
	<description>Applied Automation Ops</description>
	<lastBuildDate>Wed, 01 Dec 2021 13:50:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://www.automationdojos.com/wp-content/uploads/2021/06/Adjo_X_fav_32.png</url>
	<title>VBScript | Automation Dojos</title>
	<link>https://www.automationdojos.com/category/programming/vb-script/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How To Auto-launch VBscript with Elevated Privileges</title>
		<link>https://www.automationdojos.com/auto-launch-vbs-with-elevated-privileges/</link>
					<comments>https://www.automationdojos.com/auto-launch-vbs-with-elevated-privileges/#respond</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Thu, 15 Dec 2016 11:55:09 +0000</pubDate>
				<category><![CDATA[Github Gists]]></category>
		<category><![CDATA[How-To VBScript]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[VBScript Gists]]></category>
		<category><![CDATA[elevated-privileges]]></category>
		<category><![CDATA[run-as-admin]]></category>
		<category><![CDATA[wsh]]></category>
		<guid isPermaLink="false">https://www.automationdojos.com/?p=20373</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/auto-launch-vbs-with-elevated-privileges/">How To Auto-launch VBscript with Elevated Privileges</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2021/09/post_launch-vbs-with-elevated.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" fetchpriority="high" srcset="https://www.automationdojos.com/wp-content/uploads/2021/09/post_launch-vbs-with-elevated.png 575w, https://www.automationdojos.com/wp-content/uploads/2021/09/post_launch-vbs-with-elevated-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/09/post_launch-vbs-with-elevated-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/09/post_launch-vbs-with-elevated-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/09/post_launch-vbs-with-elevated-400x240.png 400w" sizes="(max-width: 575px) 100vw, 575px" /></p>
<p>For cases when you need to execute a VBS script (*.vbs file) as admin with elevated privileges you can try the following snippet. This can be done by running ShellExecute and setting the runas flag to run an executable or to run an entire script (batch file or VBScript) with elevated permissions. You can copy/embed [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/auto-launch-vbs-with-elevated-privileges/">How To Auto-launch VBscript with Elevated Privileges</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/auto-launch-vbs-with-elevated-privileges/">How To Auto-launch VBscript with Elevated Privileges</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2021/09/post_launch-vbs-with-elevated.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" srcset="https://www.automationdojos.com/wp-content/uploads/2021/09/post_launch-vbs-with-elevated.png 575w, https://www.automationdojos.com/wp-content/uploads/2021/09/post_launch-vbs-with-elevated-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/09/post_launch-vbs-with-elevated-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/09/post_launch-vbs-with-elevated-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/09/post_launch-vbs-with-elevated-400x240.png 400w" sizes="(max-width: 575px) 100vw, 575px" /></p><p>For cases when you need to execute a VBS script (*.vbs file) as admin with elevated privileges you can try the following snippet. This can be done by running ShellExecute and setting the runas flag to run an executable or to run an entire script (batch file or VBScript) with elevated permissions. You can copy/embed the following snippet into your vbscript file or batch file. This should result in executing your script as admin just by double-clicking it.</p>
<div class="attention2">Caution: Please use this carefully. Make sure your VBScript or batch file is correct and serves the intended purpose only because whatever your script contains will be executed as &#8216;Admin&#8217;</p>
<div class="module-icon"></div>
</div>
<div class="su-spacer" style="height:20px"></div>
<div> <script src="https://gist.github.com/a7cb25ed7a56d6ac8eae49f0d01c26ab.js"></script></div>
<div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/category/programming/vb-script/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D20373" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=VBScript&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D20373" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D20373" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/category/programming/vb-script/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D20373&title=VBScript" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=VBScript https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D20373" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=20373" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=20373', 'VBScript', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/auto-launch-vbs-with-elevated-privileges/">How To Auto-launch VBscript with Elevated Privileges</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/auto-launch-vbs-with-elevated-privileges/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Write Windows Environment Variables With VBScript</title>
		<link>https://www.automationdojos.com/write-win-env-vars-with-vbscript/</link>
					<comments>https://www.automationdojos.com/write-win-env-vars-with-vbscript/#respond</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Mon, 05 Dec 2016 11:19:00 +0000</pubDate>
				<category><![CDATA[Github Gists]]></category>
		<category><![CDATA[How-To VBScript]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[VBScript Gists]]></category>
		<category><![CDATA[elevated-privileges]]></category>
		<category><![CDATA[run-as-admin]]></category>
		<category><![CDATA[wsh]]></category>
		<guid isPermaLink="false">https://www.automationdojos.com/?p=22834</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/write-win-env-vars-with-vbscript/">How To Write Windows Environment Variables With VBScript</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-read-vbs.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" srcset="https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-read-vbs.png 575w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-read-vbs-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-read-vbs-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-read-vbs-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-read-vbs-400x240.png 400w" sizes="(max-width: 575px) 100vw, 575px" /></p>
<p>This is in continuation to the last post where we saw how to read windows environment variables using VBScript. As mentioned in the last post, we can use the following preferred methods to achieve this : In the below example we would be using the WSH Shell&#8217;s Environment method. For &#8216;strEnvVarType&#8217;, the valid parameters for [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/write-win-env-vars-with-vbscript/">How To Write Windows Environment Variables With VBScript</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/write-win-env-vars-with-vbscript/">How To Write Windows Environment Variables With VBScript</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-read-vbs.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-read-vbs.png 575w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-read-vbs-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-read-vbs-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-read-vbs-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-read-vbs-400x240.png 400w" sizes="auto, (max-width: 575px) 100vw, 575px" /></p>
<p>This is in continuation to the last post where we saw how to read windows environment variables using VBScript. As mentioned in the last post, we can use the following preferred methods to achieve this :</p>



<div class="su-list" style="margin-left:0px"><ul><li><i class="sui sui-arrow-right" style="color:#da7f46"></i> Using the WSH Shell object</li>   <li><i class="sui sui-arrow-right" style="color:#da7f46"></i> Using WMI&#8217;s Win32_Environment class</li></ul></div>



<p>In the below example we would be using the WSH Shell&#8217;s Environment method.</p>



<p>For <strong>&#8216;strEnvVarType&#8217;</strong>, the valid parameters for Environment are PROCESS, SYSTEM, USER and VOLATILE.</p>



<p>You can additionally specify the name of a specific environment variable using <strong>&#8216;strEnvVarName&#8217;</strong> for example TEMP, PATH, PATHEXT, etc.</p>



<div><script src="https://gist.github.com/414c0f611ea4ae8410227c9b119caf93.js"></script></div>
<div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/category/programming/vb-script/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22834" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=VBScript&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22834" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22834" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/category/programming/vb-script/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22834&title=VBScript" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=VBScript https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22834" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=22834" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=22834', 'VBScript', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/write-win-env-vars-with-vbscript/">How To Write Windows Environment Variables With VBScript</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/write-win-env-vars-with-vbscript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Read Windows Environment Variables With VBScript</title>
		<link>https://www.automationdojos.com/reading-win-env-var-with-vbscript/</link>
					<comments>https://www.automationdojos.com/reading-win-env-var-with-vbscript/#respond</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Sun, 20 Nov 2016 02:09:00 +0000</pubDate>
				<category><![CDATA[Github Gists]]></category>
		<category><![CDATA[How-To VBScript]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[VBScript Gists]]></category>
		<category><![CDATA[environment-vars]]></category>
		<category><![CDATA[win-env-vars]]></category>
		<category><![CDATA[wsh]]></category>
		<guid isPermaLink="false">https://www.automationdojos.com/?p=22828</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/reading-win-env-var-with-vbscript/">How To Read Windows Environment Variables With VBScript</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-vbs.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-vbs.png 575w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-vbs-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-vbs-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-vbs-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-vbs-400x240.png 400w" sizes="auto, (max-width: 575px) 100vw, 575px" /></p>
<p>Reading an environment variable is simple. There are a couple of methods available to do this but the main preferred ones are the below two : In the below example we would be using the WSH Shell&#8217;s Environment method. For &#8216;envVarType&#8217;, the valid parameters for Environment are PROCESS, SYSTEM, USER and VOLATILE. You can additionally [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/reading-win-env-var-with-vbscript/">How To Read Windows Environment Variables With VBScript</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/reading-win-env-var-with-vbscript/">How To Read Windows Environment Variables With VBScript</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-vbs.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-vbs.png 575w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-vbs-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-vbs-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-vbs-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-win-env-var-vbs-400x240.png 400w" sizes="auto, (max-width: 575px) 100vw, 575px" /></p>
<p>Reading an environment variable is simple. There are a couple of methods available to do this but the main preferred ones are the below two :</p>



<div class="su-list" style="margin-left:0px"><ul><li><i class="sui sui-arrow-right" style="color:#da7f46"></i> Using the WSH Shell object</li>   <li><i class="sui sui-arrow-right" style="color:#da7f46"></i> Using WMI&#8217;s Win32_Environment class</li></ul></div>



<p>In the below example we would be using the WSH Shell&#8217;s Environment method.</p>



<p>For <strong>&#8216;envVarType&#8217;</strong>, the valid parameters for Environment are PROCESS, SYSTEM, USER and VOLATILE.</p>



<p>You can additionally specify the name of a specific environment variable using <strong>&#8216;envVarName&#8217;</strong> for example TEMP, PATH, PATHEXT, etc.</p>



<div><script src="https://gist.github.com/4a4e8a757fe51a1cbba9cf34cbc95847.js"></script></div>
<div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/category/programming/vb-script/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22828" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=VBScript&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22828" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22828" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/category/programming/vb-script/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22828&title=VBScript" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=VBScript https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22828" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=22828" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=22828', 'VBScript', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/reading-win-env-var-with-vbscript/">How To Read Windows Environment Variables With VBScript</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/reading-win-env-var-with-vbscript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Load XML File into DOM Using MSXML</title>
		<link>https://www.automationdojos.com/load-xml-into-dom-using-msxml/</link>
					<comments>https://www.automationdojos.com/load-xml-into-dom-using-msxml/#respond</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Tue, 01 Nov 2016 13:29:00 +0000</pubDate>
				<category><![CDATA[Github Gists]]></category>
		<category><![CDATA[How-To VBScript]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[VBScript Gists]]></category>
		<category><![CDATA[dom]]></category>
		<category><![CDATA[MSXML]]></category>
		<category><![CDATA[xml-dom]]></category>
		<guid isPermaLink="false">https://www.automationdojos.com/?p=22839</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/load-xml-into-dom-using-msxml/">How To Load XML File into DOM Using MSXML</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2021/12/post-load-xml-vbs.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2021/12/post-load-xml-vbs.png 575w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-load-xml-vbs-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-load-xml-vbs-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-load-xml-vbs-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-load-xml-vbs-400x240.png 400w" sizes="auto, (max-width: 575px) 100vw, 575px" /></p>
<p>Microsoft XML Core Services (MSXML) provides two methods for loading XML documents into the Document Object Model (DOM) and one method and one property for serializing that object model back into an XML stream. The load and loadXML methods parse documents into a DOM. You can use the load method to load an XML file by pathname, URL</p>
<p>The post <a href="https://www.automationdojos.com/load-xml-into-dom-using-msxml/">How To Load XML File into DOM Using MSXML</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/load-xml-into-dom-using-msxml/">How To Load XML File into DOM Using MSXML</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2021/12/post-load-xml-vbs.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2021/12/post-load-xml-vbs.png 575w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-load-xml-vbs-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-load-xml-vbs-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-load-xml-vbs-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/12/post-load-xml-vbs-400x240.png 400w" sizes="auto, (max-width: 575px) 100vw, 575px" /></p>
<p>Microsoft XML Core Services (MSXML) provides two methods for loading XML documents into the Document Object Model (DOM) and one method and one property for serializing that object model back into an XML stream. The <code><strong>load</strong></code> and <code><strong>loadXML</strong></code> methods parse documents into a DOM.</p>



<p>You can use the <code><strong>load</strong></code> method to load an XML file by pathname, URL</p>



<div><script src="https://gist.github.com/7ae75e517e8831f3ea4b1ca3bc74c19f.js"></script></div>
<div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/category/programming/vb-script/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22839" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=VBScript&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22839" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22839" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/category/programming/vb-script/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22839&title=VBScript" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=VBScript https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22839" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=22839" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=22839', 'VBScript', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/load-xml-into-dom-using-msxml/">How To Load XML File into DOM Using MSXML</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/load-xml-into-dom-using-msxml/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Early Bound Vs Late Bound (Binding)</title>
		<link>https://www.automationdojos.com/early-bound-vs-late-bound-binding/</link>
					<comments>https://www.automationdojos.com/early-bound-vs-late-bound-binding/#respond</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Sun, 21 Apr 2013 12:14:18 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[com binding]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[VBS]]></category>
		<guid isPermaLink="false">http://www.automationdojos.com/?p=280</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/early-bound-vs-late-bound-binding/">Early Bound Vs Late Bound (Binding)</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="275" height="165" src="https://www.automationdojos.com/wp-content/uploads/2020/04/post_Early-Bound-vs-Late-Bound-275x165.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2020/04/post_Early-Bound-vs-Late-Bound-275x165.png 275w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_Early-Bound-vs-Late-Bound-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_Early-Bound-vs-Late-Bound-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_Early-Bound-vs-Late-Bound-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_Early-Bound-vs-Late-Bound-400x240.png 400w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_Early-Bound-vs-Late-Bound.png 575w" sizes="auto, (max-width: 275px) 100vw, 275px" /></p>
<p>What is Binding Before we dive into &#8216;Early&#8217; and &#8216;Late&#8217; stuff, let us discover, what the &#8216;Binding&#8217; itself means? In simple terms, the refers to the way a script or an application accesses a COM Automation object. This is manifested as the association of entities such as data, program, procedures etc. with identifiers. It is [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/early-bound-vs-late-bound-binding/">Early Bound Vs Late Bound (Binding)</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/early-bound-vs-late-bound-binding/">Early Bound Vs Late Bound (Binding)</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="275" height="165" src="https://www.automationdojos.com/wp-content/uploads/2020/04/post_Early-Bound-vs-Late-Bound-275x165.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2020/04/post_Early-Bound-vs-Late-Bound-275x165.png 275w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_Early-Bound-vs-Late-Bound-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_Early-Bound-vs-Late-Bound-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_Early-Bound-vs-Late-Bound-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_Early-Bound-vs-Late-Bound-400x240.png 400w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_Early-Bound-vs-Late-Bound.png 575w" sizes="auto, (max-width: 275px) 100vw, 275px" /></p><h3>What is Binding</h3>
<p style="text-align: justify;">Before we dive into &#8216;Early&#8217; and &#8216;Late&#8217; stuff, let us discover, what the &#8216;<b>Binding&#8217;</b> itself means?<br />
In simple terms, the <span class="su-label su-label-type-default">&#8216;Binding&#8217;</span> refers to the way a script or an application accesses a COM Automation object. This is manifested as the association of entities such as data, program, procedures etc. with identifiers.</p>
<p>It is done when the application is compiled and all functions called in code must be bound before the code can be executed. In the premise of VBScripting, when a script or application attempts to create an instance of a COM object, it inherently verifies the existence of the object in the relevant or specified namespace besides this the object&#8217;s methods and properties (called in the script) are also verified. This entire process of locating and verification while creating an instance of COM Object is called &#8216;Binding&#8217;.</p>
<div class="rt-block">
<h3>Binding with VBScript</h3>
<p>Here are some typical examples of binding &#8211;</p>
<pre class="EnlighterJSRAW" data-enlighter-language="visualbasic">Set MyObject = CreateObject ("Word.Application") 
Set MyObject = GetObject ("winmgmts:") 
Set MyObject = WScript.CreateObject ("Scripting.FileSystemObject")</pre>
</p>
<p style="text-align: justify;">In general, there are two methods to bind to a COM object using <b><a class="zem_slink" title="VBScript" href="http://en.wikipedia.org/wiki/VBScript" target="_blank" rel="wikipedia noopener noreferrer">VBScript</a> syntax </b>as specified below<b> </b>(other variations exist as well depending upon the specific needs or style) &#8211;</p>
<p><div class="su-note"  style="border-color:#dcdcdc;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;"><div class="su-note-inner su-u-clearfix su-u-trim" style="background-color:#f6f6f6;border-color:#ffffff;color:#444444;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;"></p>
<ul class="bullet-crank">
<li>CreateObject (&#8220;[Component or Server or Moniker][.][Object or typename]&#8221;)</li>
<li>GetObject (&#8220;[Component or Server or Moniker][.][Object or typename]&#8221;)</li>
</ul>
<p></div></div></p>
<p style="text-align: justify;">However, if you wish to use purely <b>WSH scripts</b>, then the syntax would slightly change to accommodate the <b>prefix</b> &#8211; &#8216;WScript&#8217; and as in &#8216;WScript.CreateObject&#8217; and &#8216;WScript.GetObject&#8217;.</p>
</div>
<div class="quote">
<div class="quote-l">
<div class="quote-r">
<p style="text-align: justify;">What is the <b>difference</b> between the above two methods, i.e.&nbsp;CreateObject and GetObject again requires a good explanation which may be out of scope of this post. But in short – ‘You should use GetObject while using <b>monikers</b> and if&nbsp;the object to which you are binding exists outside the&nbsp;‘File System’ <b>namespace</b> examples would be <b>WMI</b> and <b>ADSI</b>. For all other purposes CreateObject should do fine</p>
</div>
</div>
</div>
<p style="text-align: justify;">Coming back to Early and Late terms, the &#8216;COM&#8217; support two types of binding &#8211;</p>
<p><div class="su-box su-box-style-default" id="" style="border-color:#bfbfbf;border-radius:3px;"><div class="su-box-title" style="background-color:#f2f2f2;color:#666666;border-top-left-radius:1px;border-top-right-radius:1px">COM Binding Types Explained</div><div class="su-box-content su-u-clearfix su-u-trim" style="border-bottom-left-radius:1px;border-bottom-right-radius:1px"></p>
<p class="dropcap"><span class="dropcap">1</span><span class="su-label su-label-type-default">Early Binding :</span>With this type of binding the &#8216;COM Object&#8217;, its methods and properties are all checked when the script or program is compiled. This has some obvious advantages. Firstly any problems with &#8216;COM Object&#8217; binding if exist makes the compilation to fail and hence results in the early discovery of related issues. Secondly, this provides the advantage of early access to object model and library (COM) and hence the related information is loaded itself into the compilation or the program. Lastly, as obvious scripts or programs supporting &#8216;Early Bindinding&#8217; are relatively faster.</p>
<p class="dropcap"><span class="dropcap">2</span><span class="su-label su-label-type-default">Late Binding : </span> Since VBScript is a not a compiled language, natively it supports only &#8216;Late Binding&#8217;. Hence unlike the &#8216;Early Binding&#8217;, in case of VBScript the binding does not occur until the program is actually executed. In this scenario the program usually performs frequent registry or namespace lookups upon execution to access the information about the &#8216;COM Objects&#8217;, consequently any issues with the COM information are not discovered until the actual execution of the script/program.</p>
<p></div></div></p>
<div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/category/programming/vb-script/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D280" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=VBScript&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D280" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D280" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/category/programming/vb-script/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D280&title=VBScript" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=VBScript https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D280" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=280" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=280', 'VBScript', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/early-bound-vs-late-bound-binding/">Early Bound Vs Late Bound (Binding)</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/early-bound-vs-late-bound-binding/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Does VBScript Supports all COM Objects ?</title>
		<link>https://www.automationdojos.com/vbscript-supports-com/</link>
					<comments>https://www.automationdojos.com/vbscript-supports-com/#respond</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Thu, 14 Feb 2013 12:07:15 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[com object]]></category>
		<category><![CDATA[scripting]]></category>
		<guid isPermaLink="false">http://www.automationdojos.com/?p=166</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/vbscript-supports-com/">Does VBScript Supports all COM Objects ?</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="275" height="165" src="https://www.automationdojos.com/wp-content/uploads/2020/04/post_VBScript-COM-Object-275x165.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2020/04/post_VBScript-COM-Object-275x165.png 275w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_VBScript-COM-Object-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_VBScript-COM-Object-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_VBScript-COM-Object-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_VBScript-COM-Object-400x240.png 400w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_VBScript-COM-Object.png 575w" sizes="auto, (max-width: 275px) 100vw, 275px" /></p>
<p>Well the answer in one line is &#8211; No VBScript does not supports all COM Objects or Servers! VBScript works with only a subset of ‘Objects’ knows as ‘Automation Objects‘. As per the official literature, ‘All COM objects must support one or more interfaces, which are simply the avenues by which a COM client can access [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/vbscript-supports-com/">Does VBScript Supports all COM Objects ?</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/vbscript-supports-com/">Does VBScript Supports all COM Objects ?</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="275" height="165" src="https://www.automationdojos.com/wp-content/uploads/2020/04/post_VBScript-COM-Object-275x165.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2020/04/post_VBScript-COM-Object-275x165.png 275w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_VBScript-COM-Object-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_VBScript-COM-Object-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_VBScript-COM-Object-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_VBScript-COM-Object-400x240.png 400w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_VBScript-COM-Object.png 575w" sizes="auto, (max-width: 275px) 100vw, 275px" /></p><p style="text-align: justify;">Well the answer in one line is &#8211; No VBScript does not supports all COM Objects or Servers!</p>
<div class="approved2">
<p style="text-align: justify;">VBScript works with only a subset of ‘Objects’ knows as ‘<strong>Automation Objects</strong>‘. As per the official literature, ‘All COM objects must support one or more interfaces, which are simply the avenues by which a COM client can access a COM server. Any object which supports <strong>IDispatch interface</strong> is known as the Automation Object. Since not all COM objects support this interface hence VBScript does not directly work with all COM objects’</p>
<div class="module-icon"></div>
</div>
<p style="text-align: justify;">For more information on COM and Automation Objects refer to earlier post on &#8216;<a href="https://www.automationdojos.com/in-proc-out-proc/" rel="noopener noreferrer" target="_blank">In-Proc and Out-Proc</a>&#8216; servers here.</p>
<div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/category/programming/vb-script/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D250" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=VBScript&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D250" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D250" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/category/programming/vb-script/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D250&title=VBScript" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=VBScript https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D250" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=250" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=250', 'VBScript', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/vbscript-supports-com/">Does VBScript Supports all COM Objects ?</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/vbscript-supports-com/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>COM Components and Scripting Process</title>
		<link>https://www.automationdojos.com/com-scripting-process/</link>
					<comments>https://www.automationdojos.com/com-scripting-process/#comments</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Mon, 14 Jan 2013 12:03:25 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[VBScript]]></category>
		<guid isPermaLink="false">http://www.automationdojos.com/?p=159</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/com-scripting-process/">COM Components and Scripting Process</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="275" height="165" src="https://www.automationdojos.com/wp-content/uploads/2020/04/post_com-scripting-process-275x165.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2020/04/post_com-scripting-process-275x165.png 275w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_com-scripting-process-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_com-scripting-process-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_com-scripting-process-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_com-scripting-process-400x240.png 400w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_com-scripting-process.png 575w" sizes="auto, (max-width: 275px) 100vw, 275px" /></p>
<p>Although this article should not concern you at all as a &#8216;script developer&#8217; as long as you are aware of creating a reference to &#8216;Automation Objects&#8217; but for people with an appetite to look behind the scenes, it is quite recommended! Moreover it is always useful to know what, indeed happens when you are creating [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/com-scripting-process/">COM Components and Scripting Process</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/com-scripting-process/">COM Components and Scripting Process</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p style="text-align: justify;">Although this article should not concern you at all as a &#8216;script developer&#8217; as long as you are aware of creating a reference to &#8216;Automation Objects&#8217; but for people with an appetite to look behind the scenes, it is quite recommended! Moreover it is always useful to know what, indeed happens when you are creating an instance of any COM object in your script.</p>
<p style="text-align: justify;">In this article, we discuss the <span class="su-label su-label-type-default">&#8216;COM Object instantiation&#8217;</span> and <span class="su-label su-label-type-default">&#8216;Binding&#8217; process</span>. But before we go through this article it would be a good idea to have a look at COM and Scripting Fundamentals posted earlier in this article &#8216;<a href="https://www.automationdojos.com/in-proc-out-proc/" target="_blank" rel="noopener noreferrer">In-Proc and Out-Proc</a>&#8216; or refer to &#8216;Glossary&#8217; page for a quick brush-up of related terms.</p>
<div class="rt-block">
<h3 style="text-align: justify;">The COM Registration Process</h3>
<p style="text-align: justify;">This story starts when an application or library is installed on the operating system. During the installation, this library or application &#8216;<strong>registers</strong>&#8216; itself with the operating system just like &#8216;<strong>regsvr32</strong>&#8216; command if you are aware of it. The idea behind this registration is for the system to know that</p>
<p><div class="su-note"  style="border-color:#dcdcdc;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;"><div class="su-note-inner su-u-clearfix su-u-trim" style="background-color:#f6f6f6;border-color:#ffffff;color:#747474;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;"></p>
<ol>
<li>A new &#8216;<a class="zem_slink" title="Component Object Model" href="http://en.wikipedia.org/wiki/Component_Object_Model" target="_blank" rel="wikipedia noopener noreferrer">COM Server</a>&#8216; is available for use and</li>
<li>What &#8216;COM Classes&#8217; this COM Server has to offer.</li>
</ol>
<p></div></div></p>
<p style="text-align: justify;">There are some keys which get added at the location &#8211; &#8216;<strong>HKEY_CLASSES_ROOT</strong>&#8216; in the registry for each new &#8216;Object Class&#8217;. Among these keys is present one significant key called the &#8216;<strong>Programmatic Identifier</strong>&#8216; (<a class="zem_slink" title="ProgID" href="http://en.wikipedia.org/wiki/ProgID" target="_blank" rel="wikipedia noopener noreferrer">ProgID</a>). This &#8216;<strong>ProgID</strong>&#8216; is the short text which identifies the name given to the respective object class and hence this is the text we use in the command (CreateObject or GetObject) for creating the instance of the COM Object. For example; for creating an instance of &#8216;<em>Scripting Runtime Library</em>&#8216; you may use the &#8216;ProgID&#8217; syntax as &#8211;</p>
<pre class="EnlighterJSRAW" data-enlighter-language="visualbasic">Set MyObject = CreateObject("Scripting.FileSystemObject")</pre>
<p><figure id="attachment_20041" aria-describedby="caption-attachment-20041" style="width: 570px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" src="https://www.automationdojos.com/wp-content/uploads/2021/09/1106162_orig.jpg" alt="" width="570" height="400" class="size-full wp-image-20041" srcset="https://www.automationdojos.com/wp-content/uploads/2021/09/1106162_orig.jpg 570w, https://www.automationdojos.com/wp-content/uploads/2021/09/1106162_orig-300x211.jpg 300w, https://www.automationdojos.com/wp-content/uploads/2021/09/1106162_orig-150x105.jpg 150w, https://www.automationdojos.com/wp-content/uploads/2021/09/1106162_orig-100x70.jpg 100w, https://www.automationdojos.com/wp-content/uploads/2021/09/1106162_orig-200x140.jpg 200w, https://www.automationdojos.com/wp-content/uploads/2021/09/1106162_orig-400x281.jpg 400w" sizes="auto, (max-width: 570px) 100vw, 570px" /><figcaption id="caption-attachment-20041" class="wp-caption-text">Developed for Automation Dojos Website</figcaption></figure></p>
<p style="text-align: justify;">This &#8216;<strong>ProgID</strong>&#8216; is all the information which the system needs to locate and instantiate the COM object. The section below describes the process of locating and instantiation of COM Object.</p>
</div>
<div class="rt-block">
<h3>COM Instantiation Process</h3>
<p style="text-align: justify;">Upon the execution of &#8216;CreateObject&#8217; command as in above example, the &#8216;Script Engine&#8217; parses the &#8216;ProgID&#8217; and passes it to a &#8216;COM API&#8217; which in turn is responsible for creating the object reference. The steps below explain the remaining process &#8211;</p>
<p><div class="su-note"  style="border-color:#dcdcdc;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;"><div class="su-note-inner su-u-clearfix su-u-trim" style="background-color:#f6f6f6;border-color:#ffffff;color:#747474;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;"></p>
<ul class="bullet-crank">
<li>The &#8216;<strong>COM API</strong>&#8216; searches the &#8216;<strong>HKEY_CLASSES_ROOT</strong>&#8216; section of the registry for the subkey with the same name as the ProgID.</li>
<li>If the above subkey is located then the COM API searches for another subkey called the class ID (<a class="zem_slink" title="Globally unique identifier" href="http://en.wikipedia.org/wiki/Globally_unique_identifier" target="_blank" rel="wikipedia noopener noreferrer">CLSID</a>) in the &#8216;HKEY_CLASSES_ROOT&#8217; section. This &#8216;<strong>CLSID</strong>&#8216; is a globally unique identifier (<strong>GUID</strong>) of the Automation Object.</li>
<li>Once the system locates the &#8216;<strong>GUID</strong>&#8216;, it makes a note of it since this GUID is what the system uses in future to track and use the object.</li>
<li>With this GUID the system searches the following registry location &#8211;  &#8216;<strong>HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID</strong>&#8216; to retrieve the necessary information like the location of the executable or library file name.</li>
<li>Finally, the &#8216;COM API&#8217; loads the relevant application or library file name as deduced above,  creates the object and returns the reference to the calling script.</li>
</ul>
<p></div></div><figure id="attachment_20042" aria-describedby="caption-attachment-20042" style="width: 629px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" src="https://www.automationdojos.com/wp-content/uploads/2021/09/547729_orig.jpg" alt="" width="629" height="403" class="size-full wp-image-20042" srcset="https://www.automationdojos.com/wp-content/uploads/2021/09/547729_orig.jpg 629w, https://www.automationdojos.com/wp-content/uploads/2021/09/547729_orig-300x192.jpg 300w, https://www.automationdojos.com/wp-content/uploads/2021/09/547729_orig-150x96.jpg 150w, https://www.automationdojos.com/wp-content/uploads/2021/09/547729_orig-200x128.jpg 200w, https://www.automationdojos.com/wp-content/uploads/2021/09/547729_orig-400x256.jpg 400w" sizes="auto, (max-width: 629px) 100vw, 629px" /><figcaption id="caption-attachment-20042" class="wp-caption-text">Developed for Automation Dojos Website</figcaption></figure></p>
<div class="approved2">
<p style="text-align: justify;"><em>On the last note – If you are wondering what’s the difference between ProgID and GUID? The answer is that they are more or less aliases. Since the ProgID is easier for developers to remember and use, it is used by them while the cryptic GUID is used by the system. Both of them point to the same automation object in a given scenario.</em></p>
<div class="module-icon"></div>
</div>
</div>
<div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/category/programming/vb-script/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D159" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=VBScript&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D159" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D159" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/category/programming/vb-script/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D159&title=VBScript" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=VBScript https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D159" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=159" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=159', 'VBScript', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/com-scripting-process/">COM Components and Scripting Process</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/com-scripting-process/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>VBS Part 2 &#8211; Fundamentals and Concepts</title>
		<link>https://www.automationdojos.com/vbs-part-2-concepts/</link>
					<comments>https://www.automationdojos.com/vbs-part-2-concepts/#respond</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Thu, 20 Dec 2012 12:09:34 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[VBScript Tutorials]]></category>
		<category><![CDATA[scripting]]></category>
		<guid isPermaLink="false">http://www.automationdojos.com/?p=173</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/vbs-part-2-concepts/">VBS Part 2 &#8211; Fundamentals and Concepts</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="275" height="165" src="https://www.automationdojos.com/wp-content/uploads/2020/05/post_vbs-part2-275x165.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2020/05/post_vbs-part2-275x165.png 275w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_vbs-part2-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_vbs-part2-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_vbs-part2-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_vbs-part2-400x240.png 400w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_vbs-part2.png 575w" sizes="auto, (max-width: 275px) 100vw, 275px" /></p>
<p>Having gone through the Introductory part, it is time to look at some crucial fundamentals and concepts. This article is to refresh some of the key facts and features of VBScript. In the least, you should consider the following six points for developing a fundamental understanding of VBScript. Though we will cover these concepts in [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/vbs-part-2-concepts/">VBS Part 2 &#8211; Fundamentals and Concepts</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/vbs-part-2-concepts/">VBS Part 2 &#8211; Fundamentals and Concepts</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="275" height="165" src="https://www.automationdojos.com/wp-content/uploads/2020/05/post_vbs-part2-275x165.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2020/05/post_vbs-part2-275x165.png 275w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_vbs-part2-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_vbs-part2-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_vbs-part2-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_vbs-part2-400x240.png 400w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_vbs-part2.png 575w" sizes="auto, (max-width: 275px) 100vw, 275px" /></p><p style="text-align: justify;">Having gone through the Introductory part, it is time to look at some crucial fundamentals and concepts. This article is to refresh some of the key facts and features of VBScript. In the least, you should consider the following six points for developing a fundamental understanding of VBScript.</p>
<p>Though we will cover these concepts in depth along with examples in the subsequent tutorials, but for now these brief points are enough for you to understand &#8216;what you can or should do with VBScript&#8217;. So without further ado, let&#8217;s jump on to these concepts.</p>
<div class="rt-block">
<h3 style="text-align: justify;">VBScript is a Scripting Language</h3>
<p style="text-align: justify;">&#8216;VBScript&#8217; is a &#8216;scripting language&#8217;! What does this mean? Well, a vague difference between a programming and scripting is that a scripting language is not pre-compiled until runtime and hence while the end product of a programming language is mostly a compiled binary executable program (example; .exe), the end product of a scripting language is rather the source code itself (example; .vbs file)!<br />
Hence unlike C++, VB or other compiled programming languages, the &#8216;VBScript&#8217; is essentially an <span class="su-label su-label-type-default">&#8216;interpreted language&#8217; which is interpreted by &#8216;VBScript Engine&#8217; at runtime</span> i.e. every time the code is actually executed it is interpreted (or compiled internally).</p>
<p>For detailed explanation around interpreted and compiled languages, please refer to the earlier article &#8216;<a href="https://www.automationdojos.com/interpreted-vs-compiled-languages/" rel="noopener noreferrer" target="_blank">Interpreted Vs Compiled languages</a>&#8216;</p>
</div>
<div class="rt-block">
<h3 style="text-align: justify;">VBScript Supports &#8216;Late Binding&#8217;</h3>
<p style="text-align: justify;">Since VBScript is a not a compiled language, hence natively it supports only &#8216;Late Binding&#8217;. Therefore unlike the &#8216;Early Binding&#8217; scenario, in case of VBScript being the &#8216;Late Binding&#8217; language, the binding does not occur until the program is actually executed.</p>
<p>In this scenario the program usually performs frequent registry or namespace lookups upon execution to access the information about the &#8216;COM Object&#8217;, consequently, any issues with the COM information are not discovered until actual execution. For further reading around this concept, please refer to dedicated article on &#8216;<a href="https://www.automationdojos.com/early-bound-vs-late-bound-binding/" rel="noopener noreferrer" target="_blank">Early Bound Vs Late Bound</a>&#8216;</p>
</div>
<div class="rt-block">
<h3 style="text-align: justify;">Loosely Typed Language</h3>
<p style="text-align: justify;">When it comes to &#8216;Data Types&#8217;, VBScript is a &#8216;loosely typed language&#8217;. What this means is that the programmer does <span class="su-label su-label-type-default">not have to declare the &#8216;Data Type&#8217; of variables in advance</span>. Stating it the other way, VBScript does not provide any means for declaring the &#8216;Data Types&#8217; for the variables and rather uses a generic or universal data type called the &#8216;Variant&#8217; which can logically hold any type of value by means of its &#8216;Sub-Type&#8217;</p>
<p>Such a strategy of &#8216;having and not having data type&#8217; simultaneously is manifested by the concept of &#8216;Variant&#8217; and its &#8216;Sub-Type&#8217;. Summing-up this by means of a vague analogy, &#8220;all variables in VBScript have a default &#8216;data type called variant&#8217; which is equivalent of &#8216;no data type&#8217;, however, each variant has an associated &#8216;Sub-Type&#8217; which could be a string, integer, float&#8221; etc. Together they manifest the &#8216;having and not-having&#8217; strategy. More details around this have been discussed in the below section</p>
</div>
<div class="rt-block">
<h3 style="text-align: justify;">Single and Universal Data Type</h3>
<p style="text-align: justify;">As discussed above, VBScript has only one Data Type which is called the &#8216;Variant&#8217;. This <span class="su-label su-label-type-default">&#8216;Variant&#8217; is a special type of data type </span>in the sense that it can logically hold almost any type of value e.g. String, Integer, Date, time etc. But this does not mean the VBScript is totally unaware about &#8216;Data Types&#8217;, in order to facilitate VBScript with the intelligence to recognize and deal with &#8216;Data Types&#8217; it has a <span class="su-label su-label-type-default">special feature known as the &#8216;SubType&#8217;</span>. This &#8216;SubType&#8217; is kind of &#8216;Data Type&#8217; of the &#8216;Variant&#8217; itself. For better understanding Imagine this :</p>
<p style="text-align: justify;">When you declare a variable it automatically gets the &#8216;Variant&#8217; data type assigned to it. But when you actually put some value in this variable then VBScript assigns the appropriate Sub Type (data type) for this value. You do have means to force the data types or query the data types from there onwards.</p>
<p>So in VBScript, you can solve the dilemma of Data Types by <span class="su-label su-label-type-default">asking the &#8216;Variant&#8217; that, what is it&#8217;s SubType</span>. Now, this might complicate things further hence we will leave it here on the worth mentioning note that &#8211; the &#8216;Variant&#8217; is the only data type supported by VBScript and hence it is the only data type returned by VBScript functions.</p>
</div>
<div class="rt-block">
<h3 style="text-align: justify;">Object Model and Libraries</h3>
<p style="text-align: justify;">VBScript does not have any proprietary object model of its own! That is to say that if you want to access say for example &#8216;FileSystem&#8217; or &#8216;Network&#8217; objects and namespace, VBScript alone cannot help you. It has no way to directly talk to these resources.</p>
<p style="text-align: justify;">But the best part is, that it can hook to most of the <span class="su-label su-label-type-default">COM Components or Servers</span> and exploit them to get the work done. Hence whether you need to play with databases (ADO) or XMLs (DOM) or HTML (DOM) or any other supported COM stuff, it&#8217;s a piece of cake for VBS!</p>
<p style="text-align: justify;">Apart from being such a&nbsp; COM Master, it has got some very cool good friends from the same Microsoft family; namely the <span class="su-label su-label-type-default">&#8216;WSH&#8217;, &#8216;WMI&#8217; and &#8216;Scripting Runtime Library&#8217;</span>. You can literally get almost any scripting or automation task done on windows if you are able to make VBScript work together with these friends.</p>
</div>
<div class="rt-block">
<h3 style="text-align: justify;">COM Enabled and COM Automation</h3>
<p style="text-align: justify;">On the last note, VBScript is a <span class="su-label su-label-type-default">fully &#8216;COM-Enabled&#8217; scripting language</span> and hence can very well work with a variety of COM Components / Servers. The worth mentioning point is that VBScript works only with the COM Objects which implement an <span class="su-label su-label-type-default">&#8216;IDispatch&#8217; interface</span>.</p>
<p style="text-align: justify;">Moreover, VBScript supports COM scripting which is to say that you can create your own &#8216;Custom Classes&#8217; and their methods and properties in VBScript. This gives you increased power while using VBScript. By coding &#8216;classes&#8217; you can make your code more robust, modular and reusable.</p>
</div>
<p><div class="su-spacer" style="height:5px"></div></p>
<div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/category/programming/vb-script/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D173" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=VBScript&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D173" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D173" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/category/programming/vb-script/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D173&title=VBScript" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=VBScript https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D173" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=173" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=173', 'VBScript', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/vbs-part-2-concepts/">VBS Part 2 &#8211; Fundamentals and Concepts</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/vbs-part-2-concepts/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is In-Proc and Out-Proc (COM) ?</title>
		<link>https://www.automationdojos.com/in-proc-out-proc/</link>
					<comments>https://www.automationdojos.com/in-proc-out-proc/#comments</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Tue, 18 Dec 2012 12:08:21 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[in-proc]]></category>
		<category><![CDATA[out-proc]]></category>
		<guid isPermaLink="false">http://www.automationdojos.com/?p=170</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/in-proc-out-proc/">What is In-Proc and Out-Proc (COM) ?</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="275" height="165" src="https://www.automationdojos.com/wp-content/uploads/2020/04/post_In-Proc-Out-Proc-275x165.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2020/04/post_In-Proc-Out-Proc-275x165.png 275w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_In-Proc-Out-Proc-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_In-Proc-Out-Proc-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_In-Proc-Out-Proc-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_In-Proc-Out-Proc-400x240.png 400w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_In-Proc-Out-Proc.png 575w" sizes="auto, (max-width: 275px) 100vw, 275px" /></p>
<p>The terms &#8216;In-Proc&#8217; and &#8216;Out-Proc&#8217; are to describe the kind of implementation of COM Servers. Before we begin, for those who are not quite &#8216;COM&#8217; savvy, here is a brief preface. COM : The acronym COM stands for &#8216;Component Object Model&#8216; and it is the technology which provides a way for applications (.exe) and libraries (.dll) [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/in-proc-out-proc/">What is In-Proc and Out-Proc (COM) ?</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/in-proc-out-proc/">What is In-Proc and Out-Proc (COM) ?</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="275" height="165" src="https://www.automationdojos.com/wp-content/uploads/2020/04/post_In-Proc-Out-Proc-275x165.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2020/04/post_In-Proc-Out-Proc-275x165.png 275w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_In-Proc-Out-Proc-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_In-Proc-Out-Proc-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_In-Proc-Out-Proc-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_In-Proc-Out-Proc-400x240.png 400w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_In-Proc-Out-Proc.png 575w" sizes="auto, (max-width: 275px) 100vw, 275px" /></p><div style="text-align: justify;">
<p>The terms &#8216;In-Proc&#8217; and &#8216;Out-Proc&#8217; are to describe the kind of implementation of COM Servers. Before we begin, for those who are not quite &#8216;COM&#8217; savvy, here is a brief preface.</p>
<p>COM : The acronym COM stands for &#8216;<strong>Component Object Model</strong>&#8216; and it is the technology which provides a way for applications (.exe) and libraries (.dll) to make their functionality available to COM compliant applications or scripts. It helps developers to create re-usable software components as well as to link the components together to build applications.</p>
<p>Over a period the <strong>COM family</strong> has grown to include COM+ (MTS), Distributed COM (DCOM) and ActiveX. If you are interested in further reading refer to this official <a href="http://www.microsoft.com/com/default.mspx" target="_blank" rel="noopener noreferrer">COM Page</a>.</p>
</div>
<div style="text-align: justify;">
<h3><strong>COM Servers and COM Clients :</strong></h3>
<p>Objects that make their functionality available through &#8216;COM&#8217; are known as &#8216;COM Servers&#8217; while the scripts or application which make use of this functionality are called &#8216;COM Clients&#8217;. As simple as that! As stated in the beginning of this post, &#8216;In-Proc&#8217; and &#8216;Out-Proc&#8217; terms describe the kind of implementation of COM Servers. Here is what they mean &#8230;</p>
<div class="rt-block">
<h3><strong>Out-Proc Servers :</strong></h3>
<p>These kinds of servers are generally implemented in <strong>executable</strong> files (.exe) and are characterized by being responsible for running in a different process than the script or application which called them. </p>
<p>This is to say that for example &#8211; if you are running a script which in the middle invokes a Microsoft Excel or Word as an object then this later object would run in a different process of its own then the script which called or invoked it. So if you observe your &#8216;Task Manager&#8217; you would notice a &#8216;WScript.exe&#8217; process (for the script) and another process as &#8216;winword.exe&#8217; (for MSWord) object.</p>
</div>
<div class="rt-block">
<h3><strong>In-Proc Servers :</strong></h3>
<p>These type of servers are typically implemented in <strong>Libraries</strong> (.dll). and unlike the Out-Proc servers, they run in the same process as the script or application which called or invoked them. They do not create a separate process for themselves.</p>
<p>A good example would be the <span class="su-label su-label-type-default">&#8216;Scrun.dll&#8217;</span> (Scripting Runtime Library). So if you try creating an instance of say &#8216;FileSystem&#8217; Object (which exists in scrun.dll) you would not notice any separate process coming up then the already running process of the active script itself (WScript.exe).</p>
</div>
<div class="quote">
<div class="quote-l">
<div class="quote-r">
<p>On the last note, the worth mentioning point would be that ‘<strong>In-Proc’ servers are generally faster than the ‘Out-Proc’ servers</strong> since the operating system does not have to cross the process boundaries to interact with the object and its methods/properties.</p>
</div>
</div>
</div>
</div>
<div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/category/programming/vb-script/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D170" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=VBScript&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D170" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D170" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/category/programming/vb-script/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D170&title=VBScript" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=VBScript https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D170" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=170" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=170', 'VBScript', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/in-proc-out-proc/">What is In-Proc and Out-Proc (COM) ?</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/in-proc-out-proc/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
		<item>
		<title>VBS Part 1 &#8211; Introduction and Background</title>
		<link>https://www.automationdojos.com/vbs-tutorial-part-1/</link>
					<comments>https://www.automationdojos.com/vbs-tutorial-part-1/#comments</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Sat, 10 Nov 2012 11:09:33 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[VBScript Tutorials]]></category>
		<category><![CDATA[scripting]]></category>
		<guid isPermaLink="false">http://www.automationdojos.com/?p=275</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/vbs-tutorial-part-1/">VBS Part 1 &#8211; Introduction and Background</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="275" height="165" src="https://www.automationdojos.com/wp-content/uploads/2020/04/post_VBS-Tutorials-1-275x165.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2020/04/post_VBS-Tutorials-1-275x165.png 275w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_VBS-Tutorials-1-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_VBS-Tutorials-1-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_VBS-Tutorials-1-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_VBS-Tutorials-1-400x240.png 400w, https://www.automationdojos.com/wp-content/uploads/2020/04/post_VBS-Tutorials-1.png 575w" sizes="auto, (max-width: 275px) 100vw, 275px" /></p>
<p>At the upfront, this theoretical article might look boring to most of us but still, it is advisable to know about our scripting friend before we start interacting and dealing with it. This is to provide a brief background of VBS, its purpose, origin etc., and if we don&#8217;t let go our patience it does [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/vbs-tutorial-part-1/">VBS Part 1 &#8211; Introduction and Background</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/vbs-tutorial-part-1/">VBS Part 1 &#8211; Introduction and Background</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p style="text-align: justify;">At the upfront, this theoretical article might look boring to most of us but still, it is advisable to know about our scripting friend before we start interacting and dealing with it. This is to provide a brief background of VBS, its purpose, origin etc., and if we don&#8217;t let go our patience it does turn out to be interesting! In this article, we would briefly discuss about &#8211; <span class="su-label su-label-type-default"> &#8216;Windows Script&#8217;, &#8216;Microsoft Visual Basic Family&#8217;, &#8216;VBScript&#8217; </span> background, history and versions.</p>
<p style="text-align: justify;">To start with, the commonly referred to as <a href="http://en.wikipedia.org/wiki/VB_Script" target="_blank" rel="noopener noreferrer">&#8216;VB Script&#8217;</a> was developed by <b>Microsoft</b> and hence officially known as&nbsp;the &#8216;<a href="http://en.wikipedia.org/wiki/VB_Script" target="_blank" rel="noopener noreferrer">Microsoft&#8217;s Visual Basic Scripting Edition</a>&#8216;. It is one of the important members of the &#8216;Windows Script Technology&#8217; which consists of a total of two members.</p>
<h3>Windows Script Technology</h3>
<p style="text-align: justify;">The &#8216;<a href="http://msdn.microsoft.com/en-us/library/d1et7k7c%28VS.85%29.aspx" target="_blank" rel="noopener noreferrer">Windows Script</a>&#8216; is the technology which is the backbone&nbsp;of scripting on Windows platform. It has been manifested as two <i>&#8216;Script Engines&#8217;</i>. Although it is not recommended because of the resulting complexity but these two scripting languages can be included in parallel within a single project and&nbsp;should work perfectly fine!</p>
<p><div class="su-box su-box-style-default" id="" style="border-color:#bfbfbf;border-radius:3px;"><div class="su-box-title" style="background-color:#f2f2f2;color:#6b6b6b;border-top-left-radius:1px;border-top-right-radius:1px">Windows Script Engines</div><div class="su-box-content su-u-clearfix su-u-trim" style="border-bottom-left-radius:1px;border-bottom-right-radius:1px"></p>
<div style="padding:3px 1px; margin: 5px 0px">
<ol style="text-align: justify;">
<li>Visual Basic Scripting Edition (VBScript)</li>
<li style="text-align: justify;">Microsoft JScript</li>
</ol>
</div>
<p></div></div></p>
<p style="text-align: justify;">Under this <b><i>&#8216;Windows Script</i>&#8216;</b> banner, Microsoft provides an array of supporting features and technologies which includes tools like &#8211; debuggers, script encoders besides the COM libraries and object models like &#8211; <span class="su-label su-label-type-default">Runtime Library</span> (scrrun.dll), WSH, WMI,&nbsp;ADSI, DOM&nbsp;and many more.</p>
<p><img loading="lazy" decoding="async" src="https://www.automationdojos.com/wp-content/uploads/2021/09/4696225_orig.jpg" alt="" width="657" height="350" class="aligncenter size-full wp-image-20039" srcset="https://www.automationdojos.com/wp-content/uploads/2021/09/4696225_orig.jpg 657w, https://www.automationdojos.com/wp-content/uploads/2021/09/4696225_orig-300x160.jpg 300w, https://www.automationdojos.com/wp-content/uploads/2021/09/4696225_orig-150x80.jpg 150w, https://www.automationdojos.com/wp-content/uploads/2021/09/4696225_orig-200x107.jpg 200w, https://www.automationdojos.com/wp-content/uploads/2021/09/4696225_orig-400x213.jpg 400w" sizes="auto, (max-width: 657px) 100vw, 657px" /></p>
<p style="text-align: justify;">We will discuss more about &#8216;VBScript&#8217; in this article as well as in subsequent posts, but for <b>&#8216;JScript&#8217;</b> we will put an end by saying that it is&nbsp; Microsoft&#8217;s&nbsp;implementation of <b>&#8216;ECMA Scripting Standards and Specification</b>&#8216;. For reference the <b>Netscape&#8217;s</b> <b>&#8216;JavaScript&#8217;</b> as well is an implementation of the&nbsp;same ECMA specification and hence there is a common misconception that both JScript and JavaScript are same but officially it might be wrong to say that.</p>
<h3 style="text-align: justify;">The Microsoft VB Family</h3>
<p style="text-align: justify;">The &#8216;VBScript&#8217; belongs to the Microsoft VB family,&nbsp;more precisely it is a subset of the &#8216;<a href="http://en.wikipedia.org/wiki/Visual_Basic" target="_blank" rel="noopener noreferrer">Microsoft&#8217;s Visual Basic Language</a>&#8216;,&nbsp;this is quite obvious when we look at the similarties in the syntax of the both. The VB family comprises of three members &#8211;</p>
<p><div class="su-box su-box-style-default" id="" style="border-color:#bfbfbf;border-radius:3px;"><div class="su-box-title" style="background-color:#f2f2f2;color:#6b6b6b;border-top-left-radius:1px;border-top-right-radius:1px">VB Family Members</div><div class="su-box-content su-u-clearfix su-u-trim" style="border-bottom-left-radius:1px;border-bottom-right-radius:1px"></p>
<div style="padding:3px 1px; margin: 5px 0px">
<ol style="text-align: justify;">
<li>Visual Basic Language</li>
<li>Visual Basic for Applications (VBA) and</li>
<li>Visual Basic Scripting Edition (VBScript)</li>
</ol>
</div>
<p></div></div></p>
<p style="text-align: justify;">Unlike the rest of the two members, the <span class="su-label su-label-type-default">VBScript is typically a &#8216;<i>scripting language</i>&#8216;</span> hence it inherits all the features and constraints of a &#8216;scripting language&#8217;. Since the VB and VBA are not in-scope of this article hence rather than &#8216;muddying the water&#8217;, we would restrict ourselves to VBScript.&nbsp; As with any scripting language VBScript is &#8211;</p>
<p><div class="su-box su-box-style-default" id="" style="border-color:#bfbfbf;border-radius:3px;"><div class="su-box-title" style="background-color:#f2f2f2;color:#6b6b6b;border-top-left-radius:1px;border-top-right-radius:1px">Windows Script Engines</div><div class="su-box-content su-u-clearfix su-u-trim" style="border-bottom-left-radius:1px;border-bottom-right-radius:1px"></p>
<div style="padding:3px 1px; margin: 5px 0px">
<ol style="text-align: justify;">
<li>&#8216;<b><i>Interpreted</i></b> at Runtime&#8217;</li>
<li>Requires a <b>&#8216;<i>Host</i>&#8216;</b> to run on windows and</li>
<li>Does <b>not</b> support <b>&#8216;<i>Early Binding</i>&#8216;</b></li>
</ol>
</div>
<p></div></div></p>
<p style="text-align: justify;">Besides the above, it is a <span class="su-label su-label-type-default">&#8216;<i>Loosely Typed Language</i>&#8216;</span> which means it&nbsp;uses a &#8216;<i>universal data</i>&#8216; type (variant) and does not constraints the programmer to specify data types for variables while scripting. You can find more details and explanation on the above in related sections.</p>
<div class="rt-block">
<h3 style="text-align: justify;">History and Background</h3>
<p style="text-align: justify;">Historically, VBScript was probably first released (version 1.0) and shipped with Internet Explorer (MSIE 3.0) in 1996. It was intended to be used by&nbsp;web-developers to enhance their <span class="su-label su-label-type-default"><i>&#8216;client-side scripting&#8217;</i></span> capabilities.</p>
<p style="text-align: justify;">Nearly&nbsp;a year after, VBScript (version 2.0) was released with some added <span class="su-label su-label-type-default">&#8216;<i>server-side scripting&#8217;</i></span> capabilities for <i>Internet Information Server</i> (IIS) which was quite well leveraged with <i>ASP</i>. It was since then, that VBScript quickly claimed its right place. With this success, VBScript (version 3.0) was quickly&nbsp;introduced in Outlook 98 and for the first time appeared with &#8216;<i>Windows Script Host</i>&#8216; (WSH 1.0).</p>
<p><div class="su-note"  style="border-color:#dcdcdc;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;"><div class="su-note-inner su-u-clearfix su-u-trim" style="background-color:#f6f6f6;border-color:#ffffff;color:#747474;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;"></p>
<p style="text-align: justify;">Together with &nbsp;&#8216;<a href="http://msdn.microsoft.com/en-us/library/d1et7k7c%28VS.85%29.aspx" target="_blank" rel="noopener noreferrer">Windows Script Host</a>&#8216; <b>(WSH)</b> which supported any &#8216;<i>ActiveX Scripting</i>&#8216; languages, VBScript&nbsp;proved a &nbsp;boon to system administrators by providing the capability to manage and control system resources via VBScripts and other &#8216;<i>ActiveX scripting</i>&#8216; languages.</p>
<p></div></div></p>
<p><div class="su-note"  style="border-color:#dcdcdc;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;"><div class="su-note-inner su-u-clearfix su-u-trim" style="background-color:#f6f6f6;border-color:#ffffff;color:#747474;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;"></p>
<p style="text-align: justify;">Besides all this, VBScript still lacked any native &#8216;<i>Object Model</i>&#8216; and hence&nbsp;soon after, it&nbsp;was&nbsp;supplemented with a &#8216;<i>Runtime Library</i>&#8216; providing some &#8216;<i>Object Model</i>&#8216;. This &#8216;<a href="http://msdn.microsoft.com/en-us/library/bstcxhf7%28VS.85%29.aspx" target="_blank" rel="noopener noreferrer">Script Runtime Library</a>&#8216; was implemented as &#8216;<b>scrrun.dll</b>&#8216; which primarily introduced &#8216;<i>Dictionary</i>&#8216; and &#8216;<i>Filesystem</i> (FSO) object models&#8217;.</p>
<p></div></div></p>
<p style="text-align: justify;">During the early launch days of VBScript, it had to face a tough competition with another scripting language that preceded it &#8211; &#8216;<i><a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank" rel="noopener noreferrer">JavaScript&#8217;</a></i>. Moreover unlike VBScript the &#8216;<i><a href="http://en.wikipedia.org/wiki/Netscape" target="_blank" rel="noopener noreferrer">Netscape&#8217;s</a></i>&#8216; support for &#8216;<i>JavaScript</i>&#8216; did boost&nbsp;the acceptance of &#8216;<i>JavaScript</i>&#8216; in the market rather then VBScript. But due to Microsoft&#8217;s committment towards VBScript and subsequent inclusion of VBScript in number of Microsoft products like &#8211; <i>IIS, Internet Explorer, Outlook</i> and <i>WSH</i> made VBScript to survive the competition till date.</p>
</div>
<h3 style="text-align: justify;">Latest and Significant Versions</h3>
<p style="text-align: justify;">Over the years because of Microsoft&#8217;s commitment to VBScript, there have been considerable releases of VBScript each of them adding more or less to it&#8217;s feature set. You can find detailed information about VBscript versions on this <a href="http://msdn.microsoft.com/en-us/library/4y5y7bh5%28VS.85%29.aspx" target="_blank" rel="noopener noreferrer">page on MSDN</a>.</p>
<p><div class="su-note"  style="border-color:#dcdcdc;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;"><div class="su-note-inner su-u-clearfix su-u-trim" style="background-color:#f6f6f6;border-color:#ffffff;color:#747474;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;"></p>
<p style="text-align: justify;">The <b>latest version</b> of VBScript available at the time of this article (Sept 2009)&nbsp;is VBScript <b>version 5.8</b> available with Internet Explorer v8. However if you ask me the most&nbsp;<b>significant release</b> still remains the VBScript <b>version 5.0</b>. Since it was this&nbsp;VBScript version 5.0 in which Microsoft introduced the &#8211; &#8216;<i>Class Objects&#8217;, &#8216;Class Statement&#8217;, &#8216;Property Let, Get and Set&#8217;, &#8216;Regular Expressions&#8217;, &#8216;Events&#8217;, Timer</i>&#8216;, etc.</p>
<p></div></div></p>
<div class="rt-block">
<h3 style="text-align: justify;">Applied VBScript (The Playground)</h3>
<p style="text-align: justify;">As described above VBScript was meant to be <b><i>&#8216;</i>client-side scripting</b>&#8216; language which holds true to the good extent till date besides its capabilities and usage in&nbsp;<i>&#8216;<b>server-side scripting</b>&#8216;</i> in conjunction with HTML, ASP or others. The &#8216;.HTC&#8217; files being the most basic example of webpage and VBScript collaboration.</p>
<p style="text-align: justify;">Apart from this web arena,&nbsp;VBScript is&nbsp;predominantly popular in <b>&#8216;system administration</b>&#8216; domain&nbsp;and of course proves as a&nbsp;good aid in related <b>&#8216;system side development&#8217;</b> wherein it fits very well along with <b><i>WSH, WMI, ADSI, ADO</i></b><i>&nbsp;</i>etc.</p>
<p style="text-align: justify;">Moreover,&nbsp;to add to its importance and usage &#8211; The latest&nbsp;playground is of course <b>HP&#8217;s &#8216;Quick Test Pro</b>&#8216; which has considerably raised the popularity of VBScript among the &#8216;Software Testing Community&#8217;.</p>
</div>
<div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/category/programming/vb-script/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D275" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=VBScript&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D275" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D275" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/category/programming/vb-script/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D275&title=VBScript" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=VBScript https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D275" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=275" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=275', 'VBScript', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/vbs-tutorial-part-1/">VBS Part 1 &#8211; Introduction and Background</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/vbs-tutorial-part-1/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
