<?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>Mario Samson &#187; script</title>
	<atom:link href="http://www.mariosamson.com/tag/script/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mariosamson.com</link>
	<description>Mon blog personnel!</description>
	<lastBuildDate>Mon, 18 Apr 2011 23:36:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Le temps de démarrage de Windows?</title>
		<link>http://www.mariosamson.com/le-temps-de-demarrage/</link>
		<comments>http://www.mariosamson.com/le-temps-de-demarrage/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 20:23:47 +0000</pubDate>
		<dc:creator>Mario</dc:creator>
				<category><![CDATA[Système d'exploitation]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.mariosamson.com/?p=310</guid>
		<description><![CDATA[Vous apportez des changements à votre ordinateur et aimeriez savoir si cela a un impact sur le temps de chargement de Windows? Je vous propose un simple &#171;&#160;script&#160;&#187; qui lorsque exécuté, vous demande de redémarrer votre ordinateur et calcul le temps de démarrage. Copier le script suivant à l&#8217;intérieur d&#8217;un fichier texte, sauvegarder-le et renommer l&#8217;extension du [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-320" title="Horloge" src="http://www.mariosamson.com/wp-content/uploads/2009/11/Horloge.jpg" alt="Horloge" width="150" height="150" />Vous apportez des changements à votre ordinateur et aimeriez savoir si cela a un impact sur le temps de chargement de Windows? Je vous propose un simple &laquo;&nbsp;script&nbsp;&raquo; qui lorsque exécuté, vous demande de redémarrer votre ordinateur et calcul le temps de démarrage.</p>
<p>Copier le script suivant à l&#8217;intérieur d&#8217;un fichier texte, sauvegarder-le et renommer l&#8217;extension du fichier par .VBS (ex:démarage.vbs)</p>
<p><span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: 14px Arial; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: #000000; WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span style="TEXT-ALIGN: justify; FONT-FAMILY: -webkit-monospace; FONT-SIZE: 13px">Il ne reste plus qu&#8217;a exécuter fichier et cliquer sur &laquo;&nbsp;Ok&nbsp;&raquo;</span></span></p>
<pre class="brush: vb; title: ; notranslate">
Option Explicit
On Error Resume Next
Dim Wsh, Time1, Time2, Result, PathFile, MsgResult, MsgA, AppName, KeyA, KeyB, TimeDiff
MsgA = &quot;Please close all running applications and click on OK.&quot;
KeyA = &quot;HKEY_CURRENT_USER\Software\RestartTime\&quot;
KeyB = &quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\RestartTime&quot;
AppName = &quot;ReBoot-Time&quot;
Set Wsh = CreateObject(&quot;WScript.Shell&quot;)
PathFile = &quot;&quot;&quot;&quot; &amp; WScript.ScriptFullName &amp; &quot;&quot;&quot;&quot;
Result = wsh.RegRead(KeyA &amp; &quot;Times&quot;)
if Result = &quot;&quot; then
MsgResult = Msgbox (MsgA, vbOKCancel, AppName)
If MsgResult = vbcancel then WScript.Quit
Wsh.RegWrite KeyA &amp; &quot;Times&quot;, left(Time,8), &quot;REG_SZ&quot;
Wsh.RegWrite KeyB, PathFile, &quot;REG_SZ&quot;
Wsh.Run &quot;cmd /c Shutdown -r -t 00&quot;, false, 0
else
Wsh.RegDelete KeyA &amp; &quot;Times&quot;
Wsh.RegDelete KeyA
Wsh.RegDelete KeyB
TimeDiff = DateDiff(&quot;s&quot;,Result,left(Time,8))
MsgBox &quot;Your computer reboots in &quot; &amp; TimeDiff &amp; &quot; seconds&quot;, VbInformation, AppName
end if
wscript.Quit
</pre>
<p> </p>
<p> </p>
<p><span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: 14px Arial; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: #000000; WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span style="TEXT-ALIGN: justify; FONT-FAMILY: -webkit-monospace; FONT-SIZE: 13px">Et voilà, lorsque Windows sera démarré, une boite de dialogue vous affichera le temps de démarrage de Windows.</span></span></p>
<p><span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: 14px Arial; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: #000000; WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span style="TEXT-ALIGN: justify; FONT-FAMILY: -webkit-monospace; FONT-SIZE: 13px"> </span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mariosamson.com/le-temps-de-demarrage/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

