<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Windows Batch File Without Popup Console</title>
	<atom:link href="http://codytaylor.org/2009/08/windows-batch-file-without-popup-console.html/feed" rel="self" type="application/rss+xml" />
	<link>http://codytaylor.org/2009/08/windows-batch-file-without-popup-console.html</link>
	<description>From Cody Taylor.</description>
	<lastBuildDate>Thu, 13 Oct 2011 06:41:44 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Cody Taylor</title>
		<link>http://codytaylor.org/2009/08/windows-batch-file-without-popup-console.html/comment-page-1#comment-4611</link>
		<dc:creator>Cody Taylor</dc:creator>
		<pubDate>Thu, 26 Nov 2009 03:09:52 +0000</pubDate>
		<guid isPermaLink="false">http://codytaylor.org/?p=14224#comment-4611</guid>
		<description>@Umang Jain: I&#039;ve never tried it but I don&#039;t see why it wouldn&#039;t work. Let me know how you fare.</description>
		<content:encoded><![CDATA[<p>@Umang Jain: I&#8217;ve never tried it but I don&#8217;t see why it wouldn&#8217;t work. Let me know how you fare.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Umang Jain</title>
		<link>http://codytaylor.org/2009/08/windows-batch-file-without-popup-console.html/comment-page-1#comment-4606</link>
		<dc:creator>Umang Jain</dc:creator>
		<pubDate>Wed, 25 Nov 2009 11:10:16 +0000</pubDate>
		<guid isPermaLink="false">http://codytaylor.org/?p=14224#comment-4606</guid>
		<description>the code given at the top of the page, can it be used in a java prog in place of ,bat file.... i mean, can we call the .vbs file instead of .bat file.....</description>
		<content:encoded><![CDATA[<p>the code given at the top of the page, can it be used in a java prog in place of ,bat file&#8230;. i mean, can we call the .vbs file instead of .bat file&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cody Taylor</title>
		<link>http://codytaylor.org/2009/08/windows-batch-file-without-popup-console.html/comment-page-1#comment-4322</link>
		<dc:creator>Cody Taylor</dc:creator>
		<pubDate>Sat, 19 Sep 2009 03:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://codytaylor.org/?p=14224#comment-4322</guid>
		<description>Thanks for the input Eli</description>
		<content:encoded><![CDATA[<p>Thanks for the input Eli</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eli Bobeli</title>
		<link>http://codytaylor.org/2009/08/windows-batch-file-without-popup-console.html/comment-page-1#comment-4321</link>
		<dc:creator>Eli Bobeli</dc:creator>
		<pubDate>Fri, 18 Sep 2009 20:18:04 +0000</pubDate>
		<guid isPermaLink="false">http://codytaylor.org/?p=14224#comment-4321</guid>
		<description>Here&#039;s my variation.  Just save this in a vbs with the name of the batch file you would like to execute.  So, if you have want to run restartsql.bat, just save this code in restartsql.vbs and it will find the correct file and execute it.  

Set WshShell = WScript.CreateObject(&quot;WScript.Shell&quot;)
Set oFSO = WScript.CreateObject(&quot;Scripting.FileSystemObject&quot;)
script  = oFSO.GetFile(WScript.ScriptFullName)

cmd_ext = &quot;.bat&quot;
cmd_path = oFSO.GetParentFolderName(script)
cmd_name = Split(oFSO.GetBaseName(script),&quot;.&quot;)(0)

cmd = cmd_path &amp; &quot;\&quot; &amp; cmd_name &amp; cmd_ext
Return = WshShell.Run(cmd,0,True)
set WshShell = Nothing</description>
		<content:encoded><![CDATA[<p>Here&#8217;s my variation.  Just save this in a vbs with the name of the batch file you would like to execute.  So, if you have want to run restartsql.bat, just save this code in restartsql.vbs and it will find the correct file and execute it.  </p>
<p>Set WshShell = WScript.CreateObject(&#8221;WScript.Shell&#8221;)<br />
Set oFSO = WScript.CreateObject(&#8221;Scripting.FileSystemObject&#8221;)<br />
script  = oFSO.GetFile(WScript.ScriptFullName)</p>
<p>cmd_ext = &#8220;.bat&#8221;<br />
cmd_path = oFSO.GetParentFolderName(script)<br />
cmd_name = Split(oFSO.GetBaseName(script),&#8221;.&#8221;)(0)</p>
<p>cmd = cmd_path &amp; &#8220;\&#8221; &amp; cmd_name &amp; cmd_ext<br />
Return = WshShell.Run(cmd,0,True)<br />
set WshShell = Nothing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon E</title>
		<link>http://codytaylor.org/2009/08/windows-batch-file-without-popup-console.html/comment-page-1#comment-4225</link>
		<dc:creator>Jon E</dc:creator>
		<pubDate>Mon, 24 Aug 2009 23:33:06 +0000</pubDate>
		<guid isPermaLink="false">http://codytaylor.org/?p=14224#comment-4225</guid>
		<description>I use a program called Quick Batch File Compiler, it has a &quot;ghost option when compiling the code that hides the console window. Also, it hides your source so the batch file cant be tampered with, but i would only recommend that if your planning on never changing anything in your batch file.</description>
		<content:encoded><![CDATA[<p>I use a program called Quick Batch File Compiler, it has a &#8220;ghost option when compiling the code that hides the console window. Also, it hides your source so the batch file cant be tampered with, but i would only recommend that if your planning on never changing anything in your batch file.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

