<?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>All1 Source technologies &#187; wscript</title>
	<atom:link href="http://www.all1sourcetech.com/tag/wscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.all1sourcetech.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 23 Nov 2011 12:26:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to restart a windows service using VBScript</title>
		<link>http://www.all1sourcetech.com/restart-windows-service-vbscript/</link>
		<comments>http://www.all1sourcetech.com/restart-windows-service-vbscript/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 10:27:07 +0000</pubDate>
		<dc:creator>Shweta</dc:creator>
				<category><![CDATA[Editorial]]></category>
		<category><![CDATA[Purely Technical]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[wscript]]></category>

		<guid isPermaLink="false">http://www.all1sourcetech.com/?p=992</guid>
		<description><![CDATA[You can restart a windows service with the use of VBScript as shown in the below code snippet:
Set oshell = createobject(&#8221;Wscript.Shell&#8220;)
oshell.run&#8221;cmd.exe&#8221;
wscript.sleep 500
oshell.sendkeys &#8220;net stop &#8220;&#8221;Your service name here&#8220;&#8221;"+(&#8221;{Enter}&#8221;)
wscript.sleep 5000
oshell.sendkeys &#8220;net start &#8220;&#8221;Your service name here&#8220;&#8221;"+(&#8221;{Enter}&#8221;)
wscript.sleep 5000
oshell.sendkeys &#8220;exit&#8220;+(&#8221;{Enter}&#8221;)
 set oshell = nothing
 WScript.Quit
`
http://www.all1press.com
http://www.all1tunes.com
]]></description>
			<content:encoded><![CDATA[<p>You can restart a <a href="http://www.all1martpro.com" target="_blank">windows service</a> with the use of VBScript as shown in the below code snippet:</p>
<p><strong>Set oshell = createobject(&#8221;</strong><span style="color: #993300;"><strong>Wscript.Shell</strong></span><strong>&#8220;)<br />
oshell.run&#8221;</strong><span style="color: #993300;"><strong>cmd.exe</strong></span><strong>&#8221;<br />
wscript.sleep </strong><span style="color: #993300;"><strong>500</strong></span><strong><br />
oshell.sendkeys &#8220;</strong><span style="color: #993300;"><strong>net stop</strong></span><strong> &#8220;&#8221;</strong><span style="color: #993300;"><strong>Your service name here</strong></span><strong>&#8220;&#8221;"+(&#8221;{</strong><span style="color: #993300;"><strong>Enter</strong></span><strong>}&#8221;)<br />
wscript.sleep </strong><span style="color: #993300;"><strong>5000</strong></span><strong><br />
oshell.sendkeys &#8220;</strong><span style="color: #993300;"><strong>net start</strong></span><strong> &#8220;&#8221;</strong><span style="color: #993300;"><strong>Your service name here</strong></span><strong>&#8220;&#8221;"+(&#8221;{</strong><span style="color: #993300;"><strong>Enter</strong></span><strong>}&#8221;)<br />
wscript.sleep </strong><span style="color: #993300;"><strong>5000</strong></span><strong><br />
oshell.sendkeys &#8220;</strong><span style="color: #993300;"><strong>exit</strong></span><strong>&#8220;+(&#8221;{</strong><span style="color: #993300;"><strong>Enter</strong></span><strong>}&#8221;)</strong></p>
<p><strong> set oshell = nothing</strong></p>
<p><strong> WScript.Quit</strong></p>
<p>`<br />
<a href="http://www.all1press.com" target="_blank">http://www.all1press.com</a></p>
<p><a href="http://www.all1tunes.com" target="_blank">http://www.all1tunes.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.all1sourcetech.com/restart-windows-service-vbscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

