<?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>tech stuff &#187; popup</title>
	<atom:link href="http://codytaylor.org/tag/popup/feed" rel="self" type="application/rss+xml" />
	<link>http://codytaylor.org</link>
	<description>From Cody Taylor.</description>
	<lastBuildDate>Sun, 30 Oct 2011 04:15:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Windows Batch File Without Popup Console</title>
		<link>http://codytaylor.org/2009/08/windows-batch-file-without-popup-console.html</link>
		<comments>http://codytaylor.org/2009/08/windows-batch-file-without-popup-console.html#comments</comments>
		<pubDate>Sun, 16 Aug 2009 00:37:17 +0000</pubDate>
		<dc:creator>Cody Taylor</dc:creator>
				<category><![CDATA[windows]]></category>
		<category><![CDATA[batch file]]></category>
		<category><![CDATA[console window]]></category>
		<category><![CDATA[popup]]></category>
		<category><![CDATA[vbscript]]></category>

		<guid isPermaLink="false">http://codytaylor.org/?p=14224</guid>
		<description><![CDATA[Schedule Batch File Without Popup Console on Windows]]></description>
			<content:encoded><![CDATA[<p>Sometimes you need to schedule a batch file to run some script periodically on a windows server. I found myself having to run one fairly often and it would always pop up that annoying console window whenever I was in the middle of typing something. This sent me searching for a way to run the script without the pop up console window. There was a few ways to do this but I didn&#8217;t want to download and install any other software so I went the vbscript route. Here is what I did.</p>
<p>First create a file and call it &#8217;somefilename.vbs&#8217; and put it in the same directory as the batch file that you want to run.<br />
Next put this code in it :<br />
<pre><code>
Dim oShell
Set oShell = WScript.CreateObject (&quot;WScript.Shell&quot;)
oShell.run &quot;my-batch-file.bat&quot;, 0, False
Set oShell = Nothing
</code></pre><br />
Now when you set up the windows scheduler you want to point it at the &#8216;.vbs&#8217; file and not the &#8216;.bat&#8217; file. That seemed to be the easiest and quickest way to get rid of the console popup when running a batch file on a windows server. If anyone has another method that doesn&#8217;t require the creation of a new file I would like to hear it. You could always do some reading on vbscript and just code everything in vbscript and not use a batch file at all but I didn&#8217;t bother.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcodytaylor.org%2F2009%2F08%2Fwindows-batch-file-without-popup-console.html&amp;linkname=Windows%20Batch%20File%20Without%20Popup%20Console"><img src="http://codytaylor.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://codytaylor.org/2009/08/windows-batch-file-without-popup-console.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

