<?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>Gael Biletta &#187; Non classé</title>
	<atom:link href="http://www.biletta.fr/category/non-classe/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.biletta.fr</link>
	<description>Level up !</description>
	<lastBuildDate>Sun, 02 Oct 2011 20:53:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Outil de capture Windows 7</title>
		<link>http://www.biletta.fr/2011/10/outil-de-capture-windows-7/</link>
		<comments>http://www.biletta.fr/2011/10/outil-de-capture-windows-7/#comments</comments>
		<pubDate>Sun, 02 Oct 2011 20:53:03 +0000</pubDate>
		<dc:creator>Gael Biletta</dc:creator>
				<category><![CDATA[Non classé]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows 7;capture;astuce]]></category>

		<guid isPermaLink="false">http://www.biletta.fr/?p=239</guid>
		<description><![CDATA[L&#8217;outil de capture intégré dans Windows 7 permet d&#8217;enregistrer une partie ou la totalité de l&#8217;écran sous différent formats d&#8217;images, de personnaliser vos captures et même de les partager par e-mail. Nous allons voir comment l&#8217;utiliser : &#160; &#160; D&#8217;abords où se trouve-t-il ? Allez dans le menu Démarrer &#8211;&#62; Tous les programmes &#8211;&#62; Accessoires<a href="http://www.biletta.fr/2011/10/outil-de-capture-windows-7/">&#160;&#160;[ Read More ]</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.biletta.fr/wp-content/uploads/2011/10/capture.jpg"><img class="size-full wp-image-247 alignleft" title="capture" src="http://www.biletta.fr/wp-content/uploads/2011/10/capture.jpg" alt="" width="128" height="120" /></a>L&#8217;outil de capture intégré dans Windows 7 permet d&#8217;enregistrer une partie ou la totalité de l&#8217;écran sous différent formats d&#8217;images, de personnaliser vos captures et même de les partager par e-mail. Nous allons voir comment l&#8217;utiliser :</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>D&#8217;abords où se trouve-t-il ?</p>
<p>Allez dans le menu <strong>Démarrer &#8211;&gt; Tous les programmes &#8211;&gt; Accessoires &#8211;&gt; Outil capture </strong></p>
<p><a href="http://www.biletta.fr/wp-content/uploads/2011/10/outil-capture-1.jpg"><img class="size-full wp-image-240 alignnone" title="outil-capture-1" src="http://www.biletta.fr/wp-content/uploads/2011/10/outil-capture-1.jpg" alt="" width="337" height="522" /></a></p>
<p>le voilà ouvert :</p>
<p><a href="http://www.biletta.fr/wp-content/uploads/2011/10/outil-capture-2.jpg"><img class="alignnone size-full wp-image-242" title="outil-capture-2" src="http://www.biletta.fr/wp-content/uploads/2011/10/outil-capture-2.jpg" alt="" width="332" height="164" /></a></p>
<p>un conseil, pour l&#8217;avoir toujours sous la main, épinglez-le dans la barre des tâches : clic droit sur l&#8217;icône de la barre et choisissez :</p>
<p><a href="http://www.biletta.fr/wp-content/uploads/2011/10/outil-capture-3.jpg"><img class="alignnone size-full wp-image-241" title="outil-capture-3" src="http://www.biletta.fr/wp-content/uploads/2011/10/outil-capture-3.jpg" alt="" width="325" height="94" /></a></p>
<p>plusieurs modes de captures sont possibles, en cliquant sur &laquo;&nbsp;nouveau&nbsp;&raquo; :</p>
<p><a href="http://www.biletta.fr/wp-content/uploads/2011/10/outil-capture-4.jpg"><img class="alignnone size-full wp-image-243" title="outil-capture-4" src="http://www.biletta.fr/wp-content/uploads/2011/10/outil-capture-4.jpg" alt="" width="295" height="172" /></a></p>
<p>et en cliquant sur &laquo;&nbsp;options&nbsp;&raquo; voici les différentes options:</p>
<p><a href="http://www.biletta.fr/wp-content/uploads/2011/10/outil-capture-5.jpg"><img class="alignnone size-full wp-image-244" title="outil-capture-5" src="http://www.biletta.fr/wp-content/uploads/2011/10/outil-capture-5.jpg" alt="" width="354" height="362" /></a></p>
<p>Une fois le programme ouvert, le fond de l&#8217;écran devient blanchâtre, il suffit choisir le mode de capture et de sélectionner la zone à capturer</p>
<p><a href="http://www.biletta.fr/wp-content/uploads/2011/10/outil-capture-7.jpg"><img class="alignnone size-full wp-image-246" title="outil-capture-7" src="http://www.biletta.fr/wp-content/uploads/2011/10/outil-capture-7.jpg" alt="" width="405" height="293" /></a></p>
<p>Une fois la zone capturée voici les options disponibles :</p>
<p><a href="http://www.biletta.fr/wp-content/uploads/2011/10/outil-capture-6.jpg"><img class="alignnone size-full wp-image-245" title="outil-capture-6" src="http://www.biletta.fr/wp-content/uploads/2011/10/outil-capture-6.jpg" alt="" width="507" height="178" /></a></p>
<p>&nbsp;</p>
<p>1 = nouvelle capture<br />
2 = enregistrer la capture<br />
3 = copier<br />
4 = envoyer la capture : destinataire de courrier électronique, destinataire de courrier électronique (pièce jointe)<br />
5 = stylet (permet de dessiner sur la capture, le stylet est personnalisable)<br />
6 = surligneur<br />
7 = gomme<br />
Voilà pour la présentation de cet outil simple mais efficace. Sous XP nous devions utiliser le fameux &laquo;&nbsp;Paint&nbsp;&raquo; avec la touche &laquo;&nbsp;Impr écr&nbsp;&raquo;, voilà qui est fini maintenant grâce à cet outil incorporé à Windows 7 qui vous simplifiera la tâche.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.biletta.fr/2011/10/outil-de-capture-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Désinstaller Internet Explorer 8 sous Windows 7</title>
		<link>http://www.biletta.fr/2011/10/desinstaller-ie8-sous-windows-7/</link>
		<comments>http://www.biletta.fr/2011/10/desinstaller-ie8-sous-windows-7/#comments</comments>
		<pubDate>Sun, 02 Oct 2011 20:15:18 +0000</pubDate>
		<dc:creator>Gael Biletta</dc:creator>
				<category><![CDATA[Non classé]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[windows 7;IE8]]></category>

		<guid isPermaLink="false">http://www.biletta.fr/?p=225</guid>
		<description><![CDATA[Si vous n&#8217;utilisez pas Internet Explorer, sachez qu&#8217;il est possible de le désinstaller en quelques clics pour n&#8217;utiliser qu&#8217;un autre navigateur alternatif (Chrome, Opera, Firefox&#8230; etc). Je vais vous expliquer ci-dessous la procédure . Cette dernière est réalisée sous Windows 7 et concerne la version 8 du navigateur de Microsoft. Cela reste identique pour la<a href="http://www.biletta.fr/2011/10/desinstaller-ie8-sous-windows-7/">&#160;&#160;[ Read More ]</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.biletta.fr/wp-content/uploads/2011/10/uninstall_IE8.jpg"><img class="alignleft size-thumbnail wp-image-234" title="uninstall_IE8" src="http://www.biletta.fr/wp-content/uploads/2011/10/uninstall_IE8-150x150.jpg" alt="" width="150" height="150" /></a>Si vous n&#8217;utilisez pas Internet Explorer, sachez qu&#8217;il est possible de le désinstaller en quelques clics pour n&#8217;utiliser qu&#8217;un autre navigateur alternatif (Chrome, Opera, Firefox&#8230; etc).</p>
<p>Je vais vous expliquer ci-dessous la procédure . Cette dernière est réalisée sous Windows 7 et concerne la version 8 du navigateur de Microsoft. Cela reste identique pour la version IE 9 ou plus récente.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<ul>
<li><strong>Étape 1</strong>: Rendez-vous dans le <strong>Panneau de configuration</strong> par le menu démarrer. Cliquez ensuite sur <strong>Programmes et fonctionnalités</strong>.</li>
</ul>
<div style="text-align: -webkit-auto;" align="center"><a href="http://www.biletta.fr/wp-content/uploads/2011/10/desinstallation-IE8-1.jpg"><img class="alignnone size-full wp-image-228" title="desinstallation IE8-1" src="http://www.biletta.fr/wp-content/uploads/2011/10/desinstallation-IE8-1.jpg" alt="" width="550" /></a></div>
<ul>
<li><strong>Étape 2</strong>: Cliquez ensuite sur <strong>Activer ou désactiver des fonctionnalités windows</strong> situé sur la colonne de gauche. Cherchez <strong>Internet Explorer 8</strong> dans la liste déroulante, puis décochez la case correspondante. Validez le message d&#8217;avertissement puis redémarrez votre ordinateur. Et le tour est joué !</li>
</ul>
<p><a href="http://www.biletta.fr/wp-content/uploads/2011/10/desinstallation-IE8-2.jpg"><img class="alignnone size-full wp-image-230" title="desinstallation IE8-2" src="http://www.biletta.fr/wp-content/uploads/2011/10/desinstallation-IE8-2.jpg" alt="" width="500" height="251" /></a></p>
<p>Vous savez maintenant désinstaller Internet Explorer 8 sous Windows 7 !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.biletta.fr/2011/10/desinstaller-ie8-sous-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Déployer PDFCreator</title>
		<link>http://www.biletta.fr/2011/09/deployer-pdfcreator/</link>
		<comments>http://www.biletta.fr/2011/09/deployer-pdfcreator/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 20:27:03 +0000</pubDate>
		<dc:creator>Gael Biletta</dc:creator>
				<category><![CDATA[Non classé]]></category>
		<category><![CDATA[Pdf Creator;déploiement;package;installation silencieuse]]></category>

		<guid isPermaLink="false">http://www.biletta.fr/?p=188</guid>
		<description><![CDATA[Comment faire une installation personnalisée de PDF Creator en vu d&#8217;un déploiement ? Comment supprimer les &#171;&#160;toolbar&#160;&#187; lors d&#8217;une installation silencieuse ? Voici la solution ! Depuis à version 1.2.x le programme d&#8217;installation intègre un outil de configuration qui génère un fichier &#171;&#160;PDFcreator.ini&#160;&#187; afin de personnaliser l&#8217;installation. &#160; &#160; 1 &#8211; Capturez les paramètres d&#8217;installation dans un<a href="http://www.biletta.fr/2011/09/deployer-pdfcreator/">&#160;&#160;[ Read More ]</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.biletta.fr/wp-content/uploads/2011/09/pdfcreator.jpg"><img class="alignleft size-thumbnail wp-image-194" title="pdfcreator" src="http://www.biletta.fr/wp-content/uploads/2011/09/pdfcreator-150x150.jpg" alt="PDFCreator" width="150" height="150" /></a>Comment faire une installation personnalisée de PDF Creator en vu d&#8217;un déploiement ? Comment supprimer les &laquo;&nbsp;toolbar&nbsp;&raquo; lors d&#8217;une installation silencieuse ? Voici la solution !</p>
<p>Depuis à version 1.2.x le programme d&#8217;installation intègre un outil de configuration qui génère un fichier &laquo;&nbsp;PDFcreator.ini&nbsp;&raquo; afin de personnaliser l&#8217;installation.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h3>1 &#8211; Capturez les paramètres d&#8217;installation dans un fichier INI</h3>
<p>Lancer le fichier setup avec ces paramètres :<br />
<strong>PDFCreator-1_2_3_setup.exe /SAVEINF=&nbsp;&raquo;PDFCreator.ini&nbsp;&raquo;</strong></p>
<p>Cela lance l&#8217;installation et capture dans un fichier PDFCreator.ini toutes les options choisies durant l&#8217;installation.<br />
<strong>Pensez à désactiver les toolbar !</strong></p>
<p><a href="http://www.biletta.fr/wp-content/uploads/2011/09/pdfcreator1.png"><img class="alignnone size-medium wp-image-192" title="pdfcreator1" src="http://www.biletta.fr/wp-content/uploads/2011/09/pdfcreator1-300x231.png" alt="" width="300" height="231" /></a><a href="http://www.biletta.fr/wp-content/uploads/2011/09/pdfcreator2.png"><img class="alignnone size-medium wp-image-193" title="pdfcreator2" src="http://www.biletta.fr/wp-content/uploads/2011/09/pdfcreator2-300x231.png" alt="" width="300" height="231" /></a></p>
<p>Voici le résultat du fichier ini :</p>
<div class="codecolorer-container ini railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>Setup<span style="">&#93;</span></span><br />
<span style="color: #000099;">Lang</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">french</span><br />
<span style="color: #000099;">Dir</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">C:\Program Files\PDFCreator</span><br />
<span style="color: #000099;">Group</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">PDFCreator</span><br />
<span style="color: #000099;">NoIcons</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">0</span><br />
<span style="color: #000099;">SetupType</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">custom</span><br />
<span style="color: #000099;">Components</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">program,ghostscript,images2pdf,comsamples,helpfiles,helpfiles\french,languages,languages\english,languages\french</span><br />
<span style="color: #000099;">Tasks</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">winexplorer</span><br />
<span style="color: #000099;">Printername</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">PDFCreator</span><br />
<span style="color: #000099;">ServerInstallation</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">0</span><br />
<span style="color: #000099;">Win9xPrinterdriver</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">0</span><br />
<span style="color: #000099;">WinNtPrinterdriver</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">0</span><br />
<span style="color: #000099;">Win2k32bitPrinterdriver</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">0</span><br />
<span style="color: #000099;">Win2k64bitPrinterdriver</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">0</span><br />
<span style="color: #000099;">Toolbar</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">0</span></div></div>
<h3>2 &#8211; Installation silencieuse</h3>
<p>Ensuite pour lancer l&#8217;installation silencieuse avec les paramètres du fichier PDFCreator.ini voici la ligne de commande :<br />
<strong>PDFCreator-1_2_3_setup.exe /LOADINF=&nbsp;&raquo;PDFCreator.ini&nbsp;&raquo; /VERYSILENT /FORCEINSTALL</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.biletta.fr/2011/09/deployer-pdfcreator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Faire un package Adobe Reader X</title>
		<link>http://www.biletta.fr/2011/09/faire-un-package-adobe-reader-x/</link>
		<comments>http://www.biletta.fr/2011/09/faire-un-package-adobe-reader-x/#comments</comments>
		<pubDate>Sun, 25 Sep 2011 14:07:10 +0000</pubDate>
		<dc:creator>Gael Biletta</dc:creator>
				<category><![CDATA[Non classé]]></category>
		<category><![CDATA[package adobe reader déploiement]]></category>

		<guid isPermaLink="false">http://www.biletta.fr/?p=181</guid>
		<description><![CDATA[Dans ce tutoriel, nous allons apprendre comment personnaliser un package d&#8217;installation Adobe Reader X. Qu&#8217;est ce qu&#8217;un package ? Dans le cadre d&#8217;un déploiement d&#8217;un logiciel, un package est un exécutable ou script qui permet d&#8217;automatiser l&#8217;installation et la configuration du logiciel avec des paramètres prédéfinis. Selon les logiciels il existe différentes méthodes de &#171;&#160;packaging&#160;&#187;<a href="http://www.biletta.fr/2011/09/faire-un-package-adobe-reader-x/">&#160;&#160;[ Read More ]</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.biletta.fr/wp-content/uploads/2011/09/Adobe-Reader-X-10.jpg"><img class="alignleft" title="Adobe-Reader-X-10" src="http://www.biletta.fr/wp-content/uploads/2011/09/Adobe-Reader-X-10.jpg" alt="" width="250" height="256" /></a><br />
Dans ce tutoriel, nous allons apprendre comment personnaliser un package d&#8217;installation Adobe Reader X.</p>
<h2>Qu&#8217;est ce qu&#8217;un package ?</h2>
<p>Dans le cadre d&#8217;un déploiement d&#8217;un logiciel, un package est un exécutable ou script qui permet d&#8217;automatiser l&#8217;installation et la configuration du logiciel avec des paramètres prédéfinis.<br />
Selon les logiciels il existe différentes méthodes de &laquo;&nbsp;packaging&nbsp;&raquo; cela dépend souvent du programme d&#8217;installation (Windows installer, InstallShield, Wise, InnoSetup&#8230;etc) et du logiciel qui propose parfois un outil de configuration.</p>
<h2>Licence de déploiement</h2>
<p>Bien que Adobe Reader soit gratuit, vous aurez besoin d&#8217;obtenir une licence pour le distribuer dans votre propre environnement.<br />
L&#8217;obtention d&#8217;une licence est assez simple, il vous suffit de répondre à quelques questions telles que le nombre de copies, comment vous allez distribuer Adobe Reader, sur quelles plateformes et quelques informations sur votre entreprise, y compris les informations de contact. La même licence peut être utilisée pour distribuer Flash Player et Adobe AIR. Pour demander le permis se rendre à cette adresse : <a href="http://www.adobe.com/go/rdr_apply_dist" target="_blank">http://www.adobe.com/go/rdr_apply_dist</a></p>
<h2>Obtention de l&#8217;Assistant Personnalisation d&#8217;Adobe</h2>
<p><a href="http://www.biletta.fr/wp-content/uploads/2011/09/customisation_reader_X.png"><img class="alignleft" title="customisation_reader_X" src="http://www.biletta.fr/wp-content/uploads/2011/09/customisation_reader_X-300x208.png" alt="" width="300" height="208" /></a>Malheureusement, Adobe n&#8217;utilise pas le même installateur dans l&#8217;ensemble de ses produits et versions.</p>
<p>Pour commencer la personnalisation Reader, vous aurez besoin d&#8217;installer l&#8217;assistant de personnalisation &laquo;&nbsp;Adobe Customization Wizard X&nbsp;&raquo;</p>
<p>Adobe Customization Wizard X n&#8217;a pas beaucoup changé depuis Adobe Customization Wizard 9 , donc si vous avez une expérience du déploiement d&#8217;Adobe Reader 8 ou Reader 9 , vous serez à l&#8217;aise pour la  personnalisation et le déploiement de la nouvelle version.</p>
<p>Vous trouverez l&#8217;assistant à cette adresse :</p>
<p><a href="http://www.adobe.com/support/downloads/detail.jsp?ftpID=4950">http://www.adobe.com/support/downloads/detail.jsp?ftpID=4950</a></p>
<p>&nbsp;</p>
<h2>Téléchargement du Reader X MSI</h2>
<p>Lorsque vous créez un programme d&#8217;installation personnalisée pour Adobe Reader, commencez toujours par récupérer la dernière version sur la page FTP public :</p>
<p><a href="ftp://ftp.adobe.com/pub/adobe/reader/win/10.x/">ftp://ftp.adobe.com/pub/adobe/reader/win/10.x/</a></p>
<p>Remarque : si vous devez télécharger le dernier programme d&#8217;installation, toujours récupérer une copie du site d&#8217;Adobe pour vous garantir une source  confiance</p>
<p>Une fois que vous avez téléchargé le programme d&#8217;installation Adobe Reader X, nous allons extraire les fichiers de configuration afin de créer par la suite un fichier de transformation personnalisé. Pour extraire, exécutez la commande suivante:</p>
<p><strong>AdbeRdr1010_en_US.exe.exe -nos_o&nbsp;&raquo;C:\AdobeReaderX&nbsp;&raquo; -nos_ne</strong></p>
<p>Une fois extrait, vous devriez avoir les fichiers suivants requis pour le déploiement Reader:</p>
<p>ABCPY.INI<br />
AcroRead.msi<br />
Data1.cab<br />
setup.exe<br />
Setup.ini<a href="http://www.biletta.fr/wp-content/uploads/2011/09/Adobe-Reader-X-10.jpg"><br />
</a></p>
<h2>Création d&#8217;une transformation personnalisée pour Reader X</h2>
<p>Ici, je ne vais pas détailler toutes les options de l&#8217;outil de personnalisation reader X, je vous laisse voir la documentation détaillé de adobe :</p>
<p><a href="http://kb2.adobe.com/cps/837/cpsid_83709/attachments/Acrobat_Enterprise_Administration.pdf">http://kb2.adobe.com/cps/837/cpsid_83709/attachments/Acrobat_Enterprise_Administration.pdf</a></p>
<p>Une fois les modifications faite enregistrez votre fichier de transformation (.mst)</p>
<h2>Installation du package</h2>
<p>Pour utiliser votre transformation et installer de manière silencieuse il suffira de lancer la commande suivante :</p>
<p><strong>msiexe /i AcroRead.msi TRANSFORMS=&nbsp;&raquo;AcroRead.mst&nbsp;&raquo; /qn</strong></p>
<p>Adobe fournissant souvent des patch non cumulatif vous pouvez également ajouter les patchs lors de l&#8217;installation avec le paramètre commande suivante :</p>
<p><strong>msiexe /i AcroRead.msi TRANSFORMS=&nbsp;&raquo;AcroRead.mst&nbsp;&raquo; PATCH=&nbsp;&raquo;patch1.msp;patch2.msp&nbsp;&raquo; /qn</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.biletta.fr/2011/09/faire-un-package-adobe-reader-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Créer des installations personnalisées d&#8217;Office 2010</title>
		<link>http://www.biletta.fr/2011/09/creer-des-installations-personnalisees-doffice-2010/</link>
		<comments>http://www.biletta.fr/2011/09/creer-des-installations-personnalisees-doffice-2010/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 20:15:33 +0000</pubDate>
		<dc:creator>Gael Biletta</dc:creator>
				<category><![CDATA[Non classé]]></category>

		<guid isPermaLink="false">http://www.biletta.fr/?p=112</guid>
		<description><![CDATA[Dans ce tutoriel je vais vous expliquer comment déployer une installation personnalisée de Microsoft Office 2010 grâce à l’Outil de personnalisation Office (OPO). Cet outil fait partie du programme d’installation, c&#8217;est le principal outil utilisé pour personnaliser une installation de client Office 2010. Il est inclus dans les versions de licence en volume de Office<a href="http://www.biletta.fr/2011/09/creer-des-installations-personnalisees-doffice-2010/">&#160;&#160;[ Read More ]</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.biletta.fr/wp-content/uploads/2011/09/office.jpg"><img class="alignleft size-full wp-image-130" title="office" src="http://www.biletta.fr/wp-content/uploads/2011/09/office.jpg" alt="" width="280" height="180" /></a>Dans ce tutoriel je vais vous expliquer comment déployer une installation personnalisée de Microsoft Office 2010 grâce à l’Outil de personnalisation Office (OPO).</p>
<p>Cet outil fait partie du programme d’installation, c&#8217;est le principal outil utilisé pour personnaliser une installation de client Office 2010. Il est inclus dans les versions de licence en volume de Office 2010 comme Microsoft Office Professionnel Plus 2010.</p>
<h3></h3>
<h3></h3>
<h3></h3>
<h3>Etape 1 &#8211; Copiez tous les fichiers et dossiers du CD Office 2010 dans un dossier sur le réseau ou sur votre ordinateur.</h3>
<p>Dans notre exemple, copiez les fichiers dans &laquo;&nbsp;D:\Office14\&nbsp;&raquo;</p>
<p><a href="http://www.biletta.fr/wp-content/uploads/2011/09/2.png"><img class="alignnone size-full wp-image-116" title="2" src="http://www.biletta.fr/wp-content/uploads/2011/09/2.png" alt="" width="550" /></a></p>
<p>&nbsp;</p>
<h3>Etape 2 &#8211; Lancer l&#8217;outil de personnalisation Office 2010</h3>
<p>A partir du dossier D:\Office14, créez un raccourci de Setup.exe et renommer le en Setup Admin. Ensuite allez dans les propriétés du raccourci et modifier la cible avec la ligne de commande :  D:\Office14\Setup.exe  /admin</p>
<p><a href="http://www.biletta.fr/wp-content/uploads/2011/09/1.png"><img class="alignnone size-full wp-image-115" title="1" src="http://www.biletta.fr/wp-content/uploads/2011/09/1.png" alt="" width="486" height="515" /></a></p>
<h3> Etape 3 &#8211; Creation d&#8217;un fichier de Personnalisation</h3>
<p><a href="http://www.biletta.fr/wp-content/uploads/2011/09/3.png"><img class="alignnone size-full wp-image-116" title="2" src="http://www.biletta.fr/wp-content/uploads/2011/09/3.png" alt="" width="402" height="230" /></a></p>
<p><span class="Apple-style-span" style="font-size: 15px; font-weight: bold;">Etape 4 &#8211; Choisissez le type de fichiers par défaut</span></p>
<p>Ici nous laissons les paramètres par défaut</p>
<p><a href="http://www.biletta.fr/wp-content/uploads/2011/09/4.png"><img class="alignnone size-full wp-image-116" title="2" src="http://www.biletta.fr/wp-content/uploads/2011/09/4.png" alt="" width="453" height="515" /></a></p>
<p><span class="Apple-style-span" style="font-size: 15px; font-weight: bold;">Etape 5 &#8211; Outil de personnalistion Microsoft Office</span></p>
<p>Je ne vais pas détailler tous les paramètres mais je vous propose ici les différents réglages pour configurer une installation &laquo;&nbsp;Classique&nbsp;&raquo;  avec Word, Excel, Outlook, PowerPoint avec une installation automatisée.</p>
<h4>Configuration du chemin d&#8217;installation et de la société</h4>
<p><a href="http://www.biletta.fr/wp-content/uploads/2011/09/5.png"><img class="alignnone size-full wp-image-116" title="2" src="http://www.biletta.fr/wp-content/uploads/2011/09/5.png" alt="" width="550" /></a></p>
<p><span class="Apple-style-span" style="font-weight: bold;">Configuration de la licence et de l&#8217;interface d&#8217;installation </span></p>
<p>Pour la licence :</p>
<ul>
<li>Soit vous passez par un serveur de licence KMS</li>
<li>Soit par une clé produit (clé MAK)</li>
</ul>
<p>N&#8217;oubliez pas de <strong>cocher l&#8217;acceptation des termes du contrat de licence</strong></p>
<p>Ensuite, point important pour l&#8217;installation vous avez 3 possibilité d&#8217;affichage :</p>
<ul>
<li>Aucun : installation totalement silencieuse aucun affichage durant l&#8217;installation</li>
<li>Simple : Affiche une fenetre avec une barre d&#8217;avancement</li>
<li>Complet : Affichage interactif de l&#8217;utilisateur (doit cliquer sur les boutons suivant)</li>
</ul>
<p>Dans note exemple nous allons choisir<strong> Aucun</strong></p>
<p><a href="http://www.biletta.fr/wp-content/uploads/2011/09/6.png"><img class="alignnone size-full wp-image-116" title="2" src="http://www.biletta.fr/wp-content/uploads/2011/09/6.png" alt="" width="550" /></a></p>
<p>Sur l&#8217;écran suivant vous pouvez choisir de conserver certaines versions antérieur en cas de mise à jour d&#8217;office.</p>
<p>Dans notre exemple nous laissons tout par défaut</p>
<p><a href="http://www.biletta.fr/wp-content/uploads/2011/09/7.png"><img class="alignnone size-full wp-image-116" title="2" src="http://www.biletta.fr/wp-content/uploads/2011/09/7.png" alt="" width="550" /></a></p>
<p><span class="Apple-style-span" style="font-weight: bold;">Sélection des composants</span></p>
<p>C&#8217;est ici que vous allez décidez quels éléments d&#8217;office vont être installés ou non.</p>
<p>Dans notre exemple nous enlevons Access, OneNote et SharePoint.</p>
<p><a href="http://www.biletta.fr/wp-content/uploads/2011/09/8.png"><img class="alignnone size-full wp-image-116" title="2" src="http://www.biletta.fr/wp-content/uploads/2011/09/8.png" alt="" width="550" /></a></p>
<p>Je passe les autres écrans de configurations, mais vous pouvez allez très loin dans la configuration de l&#8217;installation Office (ajouter des fichiers,  des clés de registres, préconfigurer des comptes Outlook, modifier des paramètres utilisateurs&#8230; Etc</p>
<p><a href="http://www.biletta.fr/wp-content/uploads/2011/09/9.png"><img class="alignnone size-full wp-image-116" title="2" src="http://www.biletta.fr/wp-content/uploads/2011/09/9.png" alt="" width="550" /></a></p>
<p>Une fois la configuration terminée, nous enregistrons  notre configuration<strong> &laquo;&nbsp;Fichier/Enregistrer&nbsp;&raquo;</strong></p>
<p>Nous appelons le fichier <strong>&laquo;&nbsp;Office-classique.msp&nbsp;&raquo;</strong></p>
<p><a href="http://www.biletta.fr/wp-content/uploads/2011/09/11.png"><img class="alignnone size-full wp-image-116" title="2" src="http://www.biletta.fr/wp-content/uploads/2011/09/11.png" alt="" width="550" /></a></p>
<p>Notre fichier de configuration d&#8217;installation est maintenant créé&#8230; mais comment lancer l&#8217;installation ?</p>
<p>C&#8217;est très simple il suffit de lancer l&#8217;installation avec la commande :</p>
<p><strong>Setup.exe /adminfile &lt;mon_fichier.msp&gt;</strong></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.biletta.fr/2011/09/creer-des-installations-personnalisees-doffice-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TrashMe un peu de nettoyage avec AutoIT</title>
		<link>http://www.biletta.fr/2011/09/trashme-un-peu-de-nettoyage-avec-autoit/</link>
		<comments>http://www.biletta.fr/2011/09/trashme-un-peu-de-nettoyage-avec-autoit/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 15:28:52 +0000</pubDate>
		<dc:creator>Gael Biletta</dc:creator>
				<category><![CDATA[AutoIT]]></category>
		<category><![CDATA[Non classé]]></category>

		<guid isPermaLink="false">http://www.biletta.fr/?p=84</guid>
		<description><![CDATA[J&#8217;ai développé ce script afin de nettoyer certain dossiers qui se remplissent assez vite en fonction de l&#8217;utilisation du poste. Voici les dossiers nettoyé par le script : Nettoyage des dossiers système : C:\TEMP\ C:\WINDOWS\TEMP\ C:\RECYCLER\ C:\WINDOWS\Prefetch\ C:\WINDOWS\system32\CCM\Cache\ C:\System Volume Information\ C:\WINDOWS\$KB***$ Nettoyage des profils utilisateurs: C:\Documents and Settings\%USER%\Cookies\ C:\Documents and Settings\%USER%\Recent\ C:\Documents and Settings\%USER%\Local<a href="http://www.biletta.fr/2011/09/trashme-un-peu-de-nettoyage-avec-autoit/">&#160;&#160;[ Read More ]</a>]]></description>
			<content:encoded><![CDATA[<p>J&#8217;ai développé ce script afin de nettoyer certain dossiers qui se remplissent assez vite en fonction de l&#8217;utilisation du poste.</p>
<p>Voici les dossiers nettoyé par le script :</p>
<p><span id="more-84"></span></p>
<p>Nettoyage des dossiers système :<br />
C:\TEMP\<br />
C:\WINDOWS\TEMP\<br />
C:\RECYCLER\<br />
C:\WINDOWS\Prefetch\<br />
C:\WINDOWS\system32\CCM\Cache\<br />
C:\System Volume Information\<br />
C:\WINDOWS\$KB***$</p>
<p>Nettoyage des profils utilisateurs:<br />
C:\Documents and Settings\%USER%\Cookies\<br />
C:\Documents and Settings\%USER%\Recent\<br />
C:\Documents and Settings\%USER%\Local Settings\Temp\<br />
C:\Documents and Settings\%USER%\Local Settings\Temporary Internet Files\</p>
<p>Voici le code autoIT :</p>
<div class="codecolorer-container autoit railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:400px;"><div class="autoit codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #F000FF; font-style: italic;">#NoTrayIcon</span><br />
<span style="color: #A00FF0; font-style: italic;">#Region</span> <span style="font-style: italic; color: #009933;">;**** Directives created by AutoIt3Wrapper_GUI ****</span><br />
<span style="color: #A00FF0; font-style: italic;">#AutoIt3Wrapper_icon</span><span style="color: #FF0000; font-weight: bold;">=..</span>\<span style="color: #FF0000; font-weight: bold;">..</span>\<span style="color: #FF0000; font-weight: bold;">..</span>\<span style="color: #FF0000; font-weight: bold;">..</span>\<span style="color: #FF0000; font-weight: bold;">..</span>\Program Files\ExtracteurIcones31\Sauve\trashme<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">ico</span><br />
<span style="color: #A00FF0; font-style: italic;">#EndRegion</span> <span style="font-style: italic; color: #009933;">;**** Directives created by AutoIt3Wrapper_GUI ****</span><br />
<span style="font-style: italic; color: #009933;">; #REMOTE CONTROL# =======================================================================================================================</span><br />
<span style="font-style: italic; color: #009933;">;</span><br />
<span style="font-style: italic; color: #009933;">; Title .........: TRASH ME</span><br />
<span style="font-style: italic; color: #009933;">; Software Version : 1.0</span><br />
<span style="font-style: italic; color: #009933;">; AutoIt Version : 3.3.6.0</span><br />
<span style="font-style: italic; color: #009933;">; Description ...: Outil de nettoyage de disque à distance</span><br />
<span style="font-style: italic; color: #009933;">;</span><br />
<span style="font-style: italic; color: #009933;">; Liste des dossiers traités :</span><br />
<span style="font-style: italic; color: #009933;">; ==================</span><br />
<span style="font-style: italic; color: #009933;">; Nettoyage des dossiers système :</span><br />
<span style="font-style: italic; color: #009933;">; C:\TEMP\</span><br />
<span style="font-style: italic; color: #009933;">; C:\WINDOWS\TEMP\</span><br />
<span style="font-style: italic; color: #009933;">; C:\RECYCLER\</span><br />
<span style="font-style: italic; color: #009933;">; C:\WINDOWS\Prefetch\</span><br />
<span style="font-style: italic; color: #009933;">; C:\WINDOWS\system32\CCM\Cache\</span><br />
<span style="font-style: italic; color: #009933;">; C:\System Volume Information\</span><br />
<span style="font-style: italic; color: #009933;">; C:\WINDOWS\$KB***$</span><br />
<span style="font-style: italic; color: #009933;">;</span><br />
<span style="font-style: italic; color: #009933;">; Nettoyage des profils utilisateurs:</span><br />
<span style="font-style: italic; color: #009933;">; C:\Documents and Settings\%USER%\Cookies\</span><br />
<span style="font-style: italic; color: #009933;">; C:\Documents and Settings\%USER%\Recent\</span><br />
<span style="font-style: italic; color: #009933;">; C:\Documents and Settings\%USER%\Local Settings\Temp\</span><br />
<span style="font-style: italic; color: #009933;">; C:\Documents and Settings\%USER%\Local Settings\Temporary Internet Files\</span><br />
<span style="font-style: italic; color: #009933;">;</span><br />
<br />
<span style="font-style: italic; color: #009933;">; ===============================================================================================================================</span><br />
<span style="font-style: italic; color: #009933;">;</span><br />
<span style="font-style: italic; color: #009933;">; Author ........: Gael BILETTA</span><br />
<span style="font-style: italic; color: #009933;">; Modified.......: 21/01/2011</span><br />
<span style="font-style: italic; color: #009933;">;</span><br />
<span style="font-style: italic; color: #009933;">; ===============================================================================================================================</span><br />
<br />
<br />
<span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>ButtonConstants<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>ComboConstants<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>GUIConstantsEx<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>StaticConstants<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>WindowsConstants<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<span style="color: #F000FF; font-style: italic;">#include</span> <span style="font-weight: bold; color: #008080;">&quot;Installations.au3&quot;</span><br />
<span style="color: #F000FF; font-style: italic;">#include</span> <span style="font-weight: bold; color: #008080;">&quot;login.au3&quot;</span><br />
<span style="color: #F000FF; font-style: italic;">#Include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>Date<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<span style="color: #F000FF; font-style: italic;">#Include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>File<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<span style="color: #F000FF; font-style: italic;">#Include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>FileListToArrayNT<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>Color<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>Date<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>TreeViewConstants<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>Array<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<br />
<span style="font-style: italic; color: #009933;">; On vérifie si on passe par une ligne de commande</span><br />
<span style="font-style: italic; color: #009933;">; ligne de commande : &quot;trashme.exe computer&quot;</span><br />
<span style="font-weight: bold; color: #AA0000;">$computer</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #008080;">&quot;&quot;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">If</span></a> <span style="font-weight: bold; color: #AA0000;">$cmdline</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">&lt;&gt;</span> <span style="font-weight: bold; color: #008080;">&quot;0&quot;</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Then</span></a><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">If</span></a> <span style="font-weight: bold; color: #AA0000;">$cmdline</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">&gt;</span> <span style="font-weight: bold; color: #008080;">&quot;0&quot;</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Then</span></a> <span style="font-weight: bold; color: #AA0000;">$computer</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$cmdline</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="font-style: italic; color: #009933;">; si le nom du pc est renseigné dans la ligne de commande on lance le nettoyage du pc</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Else</span></a><br />
&nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$computer</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/InputBox.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">InputBox</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #008080;">&quot;Trash Me&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #008080;">&quot;Computer Name&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #008080;">&quot;&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <span style="font-style: italic; color: #009933;">; sinon on demande le nom du pc</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
<br />
<br />
trash_me<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$computer</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <span style="font-style: italic; color: #009933;">; on lance le nettoyage du pc</span><br />
<br />
<span style="font-style: italic; color: #009933;">; ************************** FONCTION TRASH ME ******************************************</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">func</span></a> trash_me<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$computer</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <span style="font-style: italic; color: #009933;">; ********************* DEBUT INTERFACE GRAPHIQUE ***************************</span><br />
&nbsp; &nbsp; <span style="color: #A00FF0; font-style: italic;">#Region</span> ### START Koda GUI section ### Form<span style="color: #FF0000; font-weight: bold;">=</span>c:\documents <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">and</span></a> settings\a<span style="color: #FF0000; font-weight: bold;">-</span>bilettgb\bureau\scripts\trash me<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">kxf</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a> <span style="font-weight: bold; color: #AA0000;">$Trashme</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICreate.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICreate</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #008080;">&quot;Trash Me&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">483</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">149</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #FF0000; font-weight: bold;">-</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #FF0000; font-weight: bold;">-</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUISetBkColor.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUISetBkColor</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span>0xFFFFFF<span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <span style="font-style: italic; color: #009933;">;Global $trash_button = GUICtrlCreateButton(&quot;Trash Me !&quot;, 368, 8, 99, 25, $WS_GROUP)</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a> <span style="font-weight: bold; color: #AA0000;">$path</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlCreateLabel.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlCreateLabel</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #008080;">&quot;Veuillez patienter&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">16</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">104</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">452</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">34</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetColor.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlSetColor</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">-</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">,</span> 0x808080<span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a> <span style="font-weight: bold; color: #AA0000;">$label_file_number</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlCreateLabel.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlCreateLabel</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #008080;">&quot;Fichiers supprimés :&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">16</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">40</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">96</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">17</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a> <span style="font-weight: bold; color: #AA0000;">$file_number</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlCreateLabel.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlCreateLabel</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #008080;">&quot;0&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">120</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">40</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">34</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">17</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetColor.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlSetColor</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">-</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">,</span> 0x0000FF<span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a> <span style="font-weight: bold; color: #AA0000;">$Label4</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlCreateLabel.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlCreateLabel</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #008080;">&quot;Nettoyage du PC : &quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">16</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">8</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">144</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">22</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetFont.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlSetFont</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">-</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">12</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">800</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">2</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;Arial&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a> <span style="font-weight: bold; color: #AA0000;">$computer_name</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlCreateLabel.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlCreateLabel</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #008080;">&quot;&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">168</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">9</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">93</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">22</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetFont.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlSetFont</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">-</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">12</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">800</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">2</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;Arial&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetColor.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlSetColor</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">-</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">,</span> 0x0000FF<span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a> <span style="font-weight: bold; color: #AA0000;">$Label1</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlCreateLabel.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlCreateLabel</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #008080;">&quot;Dossier en cours :&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">16</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">56</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">89</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">17</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a> <span style="font-weight: bold; color: #AA0000;">$dossier_en_cours</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlCreateLabel.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlCreateLabel</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #008080;">&quot;Analyse en cours...&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">120</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">56</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">351</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">34</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetColor.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlSetColor</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">-</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">,</span> 0x0000FF<span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUISetState.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUISetState</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span style="color: #800000; font-weight: bold;"><span style="font-weight: bold; color: #AA0000;">@SW_SHOW</span></span></a><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #A00FF0; font-style: italic;">#EndRegion</span> ### END Koda GUI section ###<br />
&nbsp; &nbsp; <span style="font-style: italic; color: #009933;">; ********************* FIN INTERFACE GRAPHIQUE ***************************</span><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetData.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlSetData</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$computer_name</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #AA0000;">$computer</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">global</span></a> <span style="font-weight: bold; color: #AA0000;">$nb_file</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><br />
<br />
<span style="font-weight: bold; color: #AA0000;">$auto</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">While</span></a> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><br />
<br />
<span style="font-weight: bold; color: #AA0000;">$nMsg</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUIGetMsg.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUIGetMsg</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Select</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Case</span></a> <span style="font-weight: bold; color: #AA0000;">$nMsg</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$GUI_EVENT_CLOSE</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">ExitLoop</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">case</span></a> <span style="font-weight: bold; color: #AA0000;">$auto</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Nettoyage<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetData.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlSetData</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$path</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #008080;">&quot;Nettoyage terminé...&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetData.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlSetData</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$dossier_en_cours</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #008080;">&quot;&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetData.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlSetData</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$file_number</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #AA0000;">$nb_file</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">MsgBox</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">64</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #008080;">&quot;Trash Me&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;Nettoyage du PC &quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$computer</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot; terminé, &quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$nb_file</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot; fichiers supprimés&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$auto</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">2</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Exit</span></a><br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndSelect</span></a><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">WEnd</span></a><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndFunc</span></a><br />
<br />
<br />
<span style="font-style: italic; color: #009933;">; ************************** FONCTION SUPPRESSION DES FICHIERS ******************************************</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">func</span></a> Nettoyage<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<br />
<span style="font-style: italic; color: #009933;">;Nettoyage du dossier C:\TEMP\</span><br />
<span style="font-weight: bold; color: #AA0000;">$temp_dir</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #008080;">&quot;\\&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$computer</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\c$\temp\&quot;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">global</span></a> <span style="font-weight: bold; color: #AA0000;">$dir</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #008080;">&quot;C:\TEMP\&quot;</span><br />
_EmptyDir<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$temp_dir</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Local</span></a> <span style="font-weight: bold; color: #AA0000;">$pid</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/RunWait.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">RunWait</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span style="color: #800000; font-weight: bold;"><span style="font-weight: bold; color: #AA0000;">@ComSpec</span></span></a> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">' /c cacls &quot;\'</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$computer</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">'\C$\System Volume Information&quot; /E /G '</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span style="color: #800000; font-weight: bold;"><span style="font-weight: bold; color: #AA0000;">@UserName</span></span></a> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">':C'</span><span style="color: #FF0000; font-weight: bold;">,</span><a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span style="color: #800000; font-weight: bold;"><span style="font-weight: bold; color: #AA0000;">@TempDir</span></span></a><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<span style="font-style: italic; color: #009933;">;Nettoyage du dossier C:\Windows\TEMP\</span><br />
<span style="font-weight: bold; color: #AA0000;">$temp_dir</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #008080;">&quot;\\&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$computer</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\c$\windows\temp\&quot;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">global</span></a> <span style="font-weight: bold; color: #AA0000;">$dir</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #008080;">&quot;C:\Windows\TEMP\&quot;</span><br />
_EmptyDir<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$temp_dir</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<span style="font-style: italic; color: #009933;">;Nettoyage du dossier C:\RECYCLER\</span><br />
<span style="font-weight: bold; color: #AA0000;">$temp_dir</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #008080;">&quot;\\&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$computer</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\c$\RECYCLER\&quot;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">global</span></a> <span style="font-weight: bold; color: #AA0000;">$dir</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #008080;">&quot;C:\RECYCLER\&quot;</span><br />
_EmptyDir<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$temp_dir</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<span style="font-style: italic; color: #009933;">;Nettoyage du dossier C:\WINDOWS\Prefetch\</span><br />
<span style="font-weight: bold; color: #AA0000;">$temp_dir</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #008080;">&quot;\\&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$computer</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\c$\WINDOWS\Prefetch\&quot;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">global</span></a> <span style="font-weight: bold; color: #AA0000;">$dir</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #008080;">&quot;C:\WINDOWS\Prefetch\&quot;</span><br />
_EmptyDir<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$temp_dir</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<span style="font-style: italic; color: #009933;">;Nettoyage du dossier C:\WINDOWS\system32\CCM\Cache\</span><br />
<span style="font-weight: bold; color: #AA0000;">$temp_dir</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #008080;">&quot;\\&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$computer</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\c$\WINDOWS\system32\CCM\Cache\&quot;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">global</span></a> <span style="font-weight: bold; color: #AA0000;">$dir</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #008080;">&quot;C:\WINDOWS\system32\CCM\Cache\&quot;</span><br />
_EmptyDir<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$temp_dir</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<span style="font-style: italic; color: #009933;">;Nettoyage du dossier C:\WINDOWS\system32\CCM\Cache\</span><br />
<span style="font-weight: bold; color: #AA0000;">$temp_dir</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #008080;">&quot;\\&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$computer</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\c$\System Volume Information\&quot;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">global</span></a> <span style="font-weight: bold; color: #AA0000;">$dir</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #008080;">&quot;C:\System Volume Information\&quot;</span><br />
_EmptySystemVol<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$temp_dir</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<span style="font-style: italic; color: #009933;">;Nettoyage du des profils utilisateurs C:\Documents and Settings\</span><br />
<span style="font-weight: bold; color: #AA0000;">$ListProfil</span> <span style="color: #FF0000; font-weight: bold;">=</span> _FileListToArrayNT <span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #008080;">&quot;\\&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$computer</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\c$\Documents and Settings\&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #008080;">&quot;*.*&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">2</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">,</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">False</span></a><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #008080;">&quot;&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">For</span></a> <span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">To</span></a> <a href="http://www.autoitscript.com/autoit3/docs/functions/UBound.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">UBound</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$ListProfil</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <span style="color: #FF0000; font-weight: bold;">-</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><br />
<br />
&nbsp; &nbsp; <span style="font-style: italic; color: #009933;">;Nettoyage du des profils utilisateurs C:\Documents and Settings\%USER%\Cookies\</span><br />
&nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$temp_dir</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #008080;">&quot;\\&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$computer</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\c$\Documents and Settings\&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$ListProfil</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\Cookies\&quot;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">global</span></a> <span style="font-weight: bold; color: #AA0000;">$dir</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #008080;">&quot;C:\Documents and Settings\&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$ListProfil</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\Cookies\&quot;</span><br />
&nbsp; &nbsp; _EmptyDir<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$temp_dir</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
&nbsp; &nbsp; <span style="font-style: italic; color: #009933;">;Nettoyage du des profils utilisateurs C:\Documents and Settings\%USER%\Recent\</span><br />
&nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$temp_dir</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #008080;">&quot;\\&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$computer</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\c$\Documents and Settings\&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$ListProfil</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\Recent\&quot;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">global</span></a> <span style="font-weight: bold; color: #AA0000;">$dir</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #008080;">&quot;C:\Documents and Settings\&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$ListProfil</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\Recent\&quot;</span><br />
&nbsp; &nbsp; _EmptyDir<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$temp_dir</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
&nbsp; &nbsp; <span style="font-style: italic; color: #009933;">;Nettoyage du des profils utilisateurs C:\Documents and Settings\%USER%\Local Settings\Temp\</span><br />
&nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$temp_dir</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #008080;">&quot;\\&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$computer</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\c$\Documents and Settings\&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$ListProfil</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\Local Settings\Temp\&quot;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">global</span></a> <span style="font-weight: bold; color: #AA0000;">$dir</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #008080;">&quot;C:\Documents and Settings\&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$ListProfil</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\Local Settings\Temp\&quot;</span><br />
&nbsp; &nbsp; _EmptyDir<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$temp_dir</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
&nbsp; &nbsp; <span style="font-style: italic; color: #009933;">;Nettoyage du des profils utilisateurs C:\Documents and Settings\%USER%\Local Settings\Temporary Internet Files\</span><br />
&nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$temp_dir</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #008080;">&quot;\\&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$computer</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\c$\Documents and Settings\&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$ListProfil</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\Local Settings\Temporary Internet Files\&quot;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">global</span></a> <span style="font-weight: bold; color: #AA0000;">$dir</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #008080;">&quot;C:\Documents and Settings\&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$ListProfil</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\Local Settings\Temporary Internet Files\&quot;</span><br />
&nbsp; &nbsp; _EmptyDir<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$temp_dir</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Next</span></a><br />
<br />
<span style="font-style: italic; color: #009933;">;Nettoyage des dossiers $NtUninstallKB$ C:\WINDOWS\</span><br />
<span style="font-weight: bold; color: #AA0000;">$Liste</span> <span style="color: #FF0000; font-weight: bold;">=</span> _FileListToArrayNT <span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #008080;">&quot;\\&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$computer</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\c$\windows\&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #008080;">'$NTUninstall*.*'</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">2</span><span style="color: #FF0000; font-weight: bold;">,</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">False</span></a><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #008080;">&quot;&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
&nbsp; &nbsp;<span style="font-weight: bold; color: #AA0000;">$total</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/UBound.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">UBound</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$Liste</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <span style="color: #FF0000; font-weight: bold;">-</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><br />
&nbsp; &nbsp;<span style="font-style: italic; color: #009933;">; Boucle de suppression.</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">For</span></a> <span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">To</span></a> <span style="font-weight: bold; color: #AA0000;">$total</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$nMsg</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUIGetMsg.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUIGetMsg</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">if</span></a> <span style="font-weight: bold; color: #AA0000;">$nMsg</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$GUI_EVENT_CLOSE</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">then</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Exit</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
<span style="font-weight: bold; color: #AA0000;">$dirlist</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #0080FF; font-style: italic; font-weight: bold;">_FileListToArray</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$Liste</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$nb_file</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$nb_file</span> <span style="color: #FF0000; font-weight: bold;">+</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/UBound.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">UBound</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$dirlist</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">global</span></a> <span style="font-weight: bold; color: #AA0000;">$dir</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$Liste</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _EmptyDir<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$Liste</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/DirRemove.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">DirRemove</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$Liste</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Next</span></a><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndFunc</span></a><br />
<br />
<br />
<br />
<br />
<br />
<span style="font-style: italic; color: #009933;">; ************************** FONCTION SUPPRESSION DES DOSSIERS ******************************************</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Func</span></a> _EmptyDir<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$DirIn</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <span style="font-style: italic; color: #009933;">; Mise en place des fichiers/Dossier dans un tableau.</span><br />
&nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$FileList</span> <span style="color: #FF0000; font-weight: bold;">=</span> _FileListToArrayNT <span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$DirIn</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;*.*&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">2</span><span style="color: #FF0000; font-weight: bold;">,</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">True</span></a><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #008080;">&quot;tracking.log;skpswi.dat;desktop.ini;~*.*&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp;<span style="font-weight: bold; color: #AA0000;">$total</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/UBound.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">UBound</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$FileList</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <span style="color: #FF0000; font-weight: bold;">-</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><br />
&nbsp; &nbsp;<span style="font-style: italic; color: #009933;">; Boucle de suppression.</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">For</span></a> <span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">To</span></a> <span style="font-weight: bold; color: #AA0000;">$total</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="font-style: italic; color: #009933;">; Modification des attributs des Fichiers/Dossiers du répertoire.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="font-style: italic; color: #009933;">;FileSetAttrib($FileList[$i], &quot;-RAH&quot;, 1)</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$nMsg</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUIGetMsg.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUIGetMsg</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">if</span></a> <span style="font-weight: bold; color: #AA0000;">$nMsg</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$GUI_EVENT_CLOSE</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">then</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Exit</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="font-style: italic; color: #009933;">; Si le $FileList[$i] est un répertoire on fait un DirRemove.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">If</span></a> <a href="http://www.autoitscript.com/autoit3/docs/functions/StringInStr.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">StringInStr</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><a href="http://www.autoitscript.com/autoit3/docs/functions/FileGetAttrib.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">FileGetAttrib</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$FileList</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;D&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Then</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$dirlist</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #0080FF; font-style: italic; font-weight: bold;">_FileListToArray</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$FileList</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$nb_file</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$nb_file</span> <span style="color: #FF0000; font-weight: bold;">+</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/UBound.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">UBound</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$dirlist</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/DirRemove.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">DirRemove</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$FileList</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Else</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-style: italic; color: #009933;">; Sinon on fait un FileDelete.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">local</span></a> <span style="font-weight: bold; color: #AA0000;">$result</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/FileDelete.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">FileDelete</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$FileList</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">if</span></a> <span style="font-weight: bold; color: #AA0000;">$result</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">then</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetData.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlSetData</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$dossier_en_cours</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #AA0000;">$dir</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetData.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlSetData</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$path</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #AA0000;">$FileList</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$nb_file</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$nb_file</span> <span style="color: #FF0000; font-weight: bold;">+</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetData.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlSetData</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$file_number</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #AA0000;">$nb_file</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="font-style: italic; color: #009933;">; Fin de la boucle.</span><br />
<br />
<br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Next</span></a><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndFunc</span></a> &nbsp; <span style="font-style: italic; color: #009933;">;==&gt;_EmptyDir</span><br />
<br />
<br />
<span style="font-style: italic; color: #009933;">; ************************** FONCTION NETTOYAGE SYSTEM VOLUME INFORMATION ******************************************</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Func</span></a> _EmptySystemVol<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$DirIn</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
&nbsp; &nbsp; <span style="font-style: italic; color: #009933;">; Mise en place des fichiers/Dossier dans un tableau.</span><br />
&nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$FileList</span> <span style="color: #FF0000; font-weight: bold;">=</span> _FileListToArrayNT <span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$DirIn</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;*.*&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">2</span><span style="color: #FF0000; font-weight: bold;">,</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">True</span></a><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #008080;">&quot;tracking.log;skpswi.dat;desktop.ini&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$total</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/UBound.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">UBound</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$FileList</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <span style="color: #FF0000; font-weight: bold;">-</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><br />
<br />
&nbsp; &nbsp;<span style="font-style: italic; color: #009933;">; Boucle de suppression.</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">For</span></a> <span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">To</span></a> <span style="font-weight: bold; color: #AA0000;">$total</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="font-style: italic; color: #009933;">; Modification des attributs des Fichiers/Dossiers du répertoire.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="font-style: italic; color: #009933;">;FileSetAttrib($FileList[$i], &quot;-RAH&quot;, 1)</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$nMsg</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUIGetMsg.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUIGetMsg</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">if</span></a> <span style="font-weight: bold; color: #AA0000;">$nMsg</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$GUI_EVENT_CLOSE</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">then</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Exit</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="font-style: italic; color: #009933;">; Si le $FileList[$i] est un répertoire on fait un DirRemove.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">If</span></a> <a href="http://www.autoitscript.com/autoit3/docs/functions/StringInStr.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">StringInStr</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><a href="http://www.autoitscript.com/autoit3/docs/functions/FileGetAttrib.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">FileGetAttrib</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$FileList</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;D&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Then</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/DirRemove.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">DirRemove</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$FileList</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Else</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-style: italic; color: #009933;">; Sinon on fait un FileDelete.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">local</span></a> <span style="font-weight: bold; color: #AA0000;">$result</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/FileDelete.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">FileDelete</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$FileList</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">if</span></a> <span style="font-weight: bold; color: #AA0000;">$result</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">then</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetData.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlSetData</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$dossier_en_cours</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #AA0000;">$dir</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetData.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlSetData</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$path</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #AA0000;">$FileList</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$nb_file</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$nb_file</span> <span style="color: #FF0000; font-weight: bold;">+</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetData.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlSetData</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$file_number</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #AA0000;">$nb_file</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="font-style: italic; color: #009933;">; Fin de la boucle.</span><br />
<br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Next</span></a><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndFunc</span></a> &nbsp; <span style="font-style: italic; color: #009933;">;==&gt;_EmptyDir</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.biletta.fr/2011/09/trashme-un-peu-de-nettoyage-avec-autoit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lister les objets d&#8217;une OU active directory</title>
		<link>http://www.biletta.fr/2011/09/lister-les-objet-d-un-ou-active-directory/</link>
		<comments>http://www.biletta.fr/2011/09/lister-les-objet-d-un-ou-active-directory/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 15:11:29 +0000</pubDate>
		<dc:creator>Gael Biletta</dc:creator>
				<category><![CDATA[AutoIT]]></category>
		<category><![CDATA[Non classé]]></category>

		<guid isPermaLink="false">http://www.biletta.fr/?p=78</guid>
		<description><![CDATA[Encore un petit bout de code AutoIT. Cette fois ci je vous propose de lister facilement tous les objets d&#8217;une OU active directory #include &#60;AD.au3&#62; #include &#60;GuiConstantsEx.au3&#62; #include &#60;Date.au3&#62; #include &#60;file.au3&#62; #include &#60;WindowsConstants.au3&#62; #include &#60;ButtonConstants.au3&#62; #include &#60;ComboConstants.au3&#62; #include &#60;StaticConstants.au3&#62; #Region ### START Koda GUI section ### Form= Global $Form1 = GUICreate&#40;&#34;Liste les objets d'une OU<a href="http://www.biletta.fr/2011/09/lister-les-objet-d-un-ou-active-directory/">&#160;&#160;[ Read More ]</a>]]></description>
			<content:encoded><![CDATA[<p>Encore un petit bout de code AutoIT.</p>
<p>Cette fois ci je vous propose de lister facilement tous les objets d&#8217;une OU active directory<br />
<span id="more-78"></span></p>
<div class="codecolorer-container autoit railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:400px;"><div class="autoit codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>AD<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>GuiConstantsEx<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>Date<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>file<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>WindowsConstants<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>ButtonConstants<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>ComboConstants<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>StaticConstants<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<br />
<span style="color: #A00FF0; font-style: italic;">#Region</span> ### START Koda GUI section ### Form<span style="color: #FF0000; font-weight: bold;">=</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a> <span style="font-weight: bold; color: #AA0000;">$Form1</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICreate.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICreate</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #008080;">&quot;Liste les objets d'une OU Active Directory&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">448</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">87</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">333</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">162</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a> <span style="font-weight: bold; color: #AA0000;">$IOU</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlCreateCombo.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlCreateCombo</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #008080;">&quot;Please Wait...&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">80</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">16</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">353</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">25</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a> <span style="font-weight: bold; color: #AA0000;">$Label1</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlCreateLabel.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlCreateLabel</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #008080;">&quot;Select OU&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">8</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">16</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">53</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">17</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a> <span style="font-weight: bold; color: #AA0000;">$GO</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlCreateButton.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlCreateButton</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #008080;">&quot;GO&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">360</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">48</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">75</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">25</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #AA0000;">$WS_GROUP</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a> <span style="font-weight: bold; color: #AA0000;">$sOU</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a> <span style="font-weight: bold; color: #AA0000;">$aOUs</span><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/functions/GUISetState.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUISetState</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span style="color: #800000; font-weight: bold;"><span style="font-weight: bold; color: #AA0000;">@SW_SHOW</span></span></a><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<span style="color: #A00FF0; font-style: italic;">#EndRegion</span> ### END Koda GUI section ###<br />
_AD_Open<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
_listOU<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">While</span></a> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a> <span style="font-weight: bold; color: #AA0000;">$nMsg</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUIGetMsg.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUIGetMsg</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Switch</span></a> <span style="font-weight: bold; color: #AA0000;">$nMsg</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Case</span></a> <span style="font-weight: bold; color: #AA0000;">$GUI_EVENT_CLOSE</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Exit</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Case</span></a> <span style="font-weight: bold; color: #AA0000;">$GO</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a> <span style="font-weight: bold; color: #AA0000;">$sOU</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlRead.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlRead</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$IOU</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">For</span></a> <span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">To</span></a> <span style="font-weight: bold; color: #AA0000;">$aOUs</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Step</span></a> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">if</span></a> <span style="font-weight: bold; color: #AA0000;">$aOUs</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$sOU</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Then</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$sOU</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$aOUs</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Next</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _listObject<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">ExitLoop</span></a><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndSwitch</span></a><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">WEnd</span></a><br />
<br />
<span style="font-style: italic; color: #009933;">; ******************************************************</span><br />
<span style="font-style: italic; color: #009933;">; Fonction pour lister les OU</span><br />
<span style="font-style: italic; color: #009933;">;*******************************************************</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Func</span></a> _listOU<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Local</span></a> <span style="font-weight: bold; color: #AA0000;">$listecombo</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a> <span style="font-weight: bold; color: #AA0000;">$aOUs</span> <span style="color: #FF0000; font-weight: bold;">=</span> _AD_GetAllOUs<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #008080;">&quot;OU=&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;,&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$sAD_DNSDomain</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">If</span></a> <a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span style="color: #800000; font-weight: bold;"><span style="font-weight: bold; color: #AA0000;">@error</span></span></a> <span style="color: #FF0000; font-weight: bold;">&gt;</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Then</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">MsgBox</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">64</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;Erreur&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;Impossible de joindre l'AD&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Else</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">For</span></a> <span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">To</span></a> <span style="font-weight: bold; color: #AA0000;">$aOUs</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Step</span></a> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$tempo</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/StringSplit.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">StringSplit</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$aOUs</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;\&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$listecombo</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$listecombo</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;|&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$aOUs</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Next</span></a><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetData.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">GUICtrlSetData</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$IOU</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #AA0000;">$listecombo</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndFunc</span></a> &nbsp; <span style="font-style: italic; color: #009933;">;==&gt;_listOU</span><br />
<br />
<br />
<br />
<span style="font-style: italic; color: #009933;">; ******************************************************</span><br />
<span style="font-style: italic; color: #009933;">; Fonction pour lister les Objet d'une OU</span><br />
<span style="font-style: italic; color: #009933;">;*******************************************************</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">func</span></a> _listObject<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a> <span style="font-weight: bold; color: #AA0000;">$aObjects</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #AA0000;">$sSeparator</span><br />
<br />
&nbsp; &nbsp; <span style="font-weight: bold; color: #AA0000;">$aObjects</span> <span style="color: #FF0000; font-weight: bold;">=</span> _AD_GetObjectsInOU<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$sOU</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;(name=*)&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">2</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;sAMAccountName,distinguishedName,displayname&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">If</span></a> <a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span style="color: #800000; font-weight: bold;"><span style="font-weight: bold; color: #AA0000;">@error</span></span></a> <span style="color: #FF0000; font-weight: bold;">&gt;</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Then</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">MsgBox</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">64</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;Active Directory Objects&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;No OUs Object could be found&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Else</span></a><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0080FF; font-style: italic; font-weight: bold;">_ArrayDisplay</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$aObjects</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;Active Directory Objects in '&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$sOU</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;'&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Global</span></a> <span style="font-weight: bold; color: #AA0000;">$iResult</span> <span style="color: #FF0000; font-weight: bold;">=</span> _AD_GetObjectsInOU<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$sOU</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;(name=*)&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">2</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;sAMAccountName,distinguishedName,displayname&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">True</span></a><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
&nbsp; &nbsp; <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndFunc</span></a><br />
<br />
_AD_Close<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.biletta.fr/2011/09/lister-les-objet-d-un-ou-active-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lister les groupes AD d&#8217;un utilisateur avec AutoIT</title>
		<link>http://www.biletta.fr/2011/09/lister-les-groupes-ad-dun-utilisateur-avec-autoit/</link>
		<comments>http://www.biletta.fr/2011/09/lister-les-groupes-ad-dun-utilisateur-avec-autoit/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 15:05:10 +0000</pubDate>
		<dc:creator>Gael Biletta</dc:creator>
				<category><![CDATA[AutoIT]]></category>
		<category><![CDATA[Non classé]]></category>

		<guid isPermaLink="false">http://www.biletta.fr/?p=75</guid>
		<description><![CDATA[Ce script est tout bête mais peut s&#8217;avérer fort pratique ! Si vous désirer lister rapidement les groupe Active Directory d&#8217;un utilisateur voici le code AutoIT : #include &#60;AD.au3&#62; #include &#60;GuiConstantsEx.au3&#62; #include &#60;Date.au3&#62; #include &#60;file.au3&#62; #include &#60;WindowsConstants.au3&#62; _AD_Open&#40;&#41; $user = InputBox&#40;&#34;Liste des groupes AD d'un utilisateur&#34;,&#34;Entrer le Login&#34;,&#34;&#34;,&#34;&#34;,300,150&#41; ;$groups =_AD_GetUserGroups($user) $groups =_AD_GetGroupMembers&#40;$user&#41; _ArrayDisplay&#40;$groups&#41; _AD_Close&#40;&#41;]]></description>
			<content:encoded><![CDATA[<p>Ce script est tout bête mais peut s&#8217;avérer fort pratique !</p>
<p>Si vous désirer lister rapidement les groupe Active Directory d&#8217;un utilisateur voici le code AutoIT :<br />
<span id="more-75"></span></p>
<div class="codecolorer-container autoit railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="autoit codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>AD<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>GuiConstantsEx<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>Date<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>file<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
<span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>WindowsConstants<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span><br />
_AD_Open<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<span style="font-weight: bold; color: #AA0000;">$user</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/InputBox.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">InputBox</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #008080;">&quot;Liste des groupes AD d'un utilisateur&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #008080;">&quot;Entrer le Login&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #008080;">&quot;&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #008080;">&quot;&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">300</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">150</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<span style="font-style: italic; color: #009933;">;$groups =_AD_GetUserGroups($user)</span><br />
<span style="font-weight: bold; color: #AA0000;">$groups</span> <span style="color: #FF0000; font-weight: bold;">=</span>_AD_GetGroupMembers<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$user</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<span style="color: #0080FF; font-style: italic; font-weight: bold;">_ArrayDisplay</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$groups</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
_AD_Close<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.biletta.fr/2011/09/lister-les-groupes-ad-dun-utilisateur-avec-autoit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modifier les Quotas Exchange</title>
		<link>http://www.biletta.fr/2011/09/modifier-les-quotas-exchange/</link>
		<comments>http://www.biletta.fr/2011/09/modifier-les-quotas-exchange/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 14:38:19 +0000</pubDate>
		<dc:creator>Gael Biletta</dc:creator>
				<category><![CDATA[AutoIT]]></category>
		<category><![CDATA[Non classé]]></category>

		<guid isPermaLink="false">http://www.biletta.fr/?p=64</guid>
		<description><![CDATA[Ce script AutoIT permet de modifier les Quotas Exchanges de plusieurs comptes utilisateur. Le fichier Liste.txt contient la liste des utilisateur à modifier Le script propose ensuite quelle valeurs de Quota voulez vous appliquer sur ces comptes. Le script modifie les attributs suivant : Emettre un avertissement : mDBStorageQuota Interdire l’envoi à partir de : mDBOverQuotaLimit Interdire<a href="http://www.biletta.fr/2011/09/modifier-les-quotas-exchange/">&#160;&#160;[ Read More ]</a>]]></description>
			<content:encoded><![CDATA[<p>Ce script AutoIT permet de modifier les Quotas Exchanges de plusieurs comptes utilisateur.</p>
<p>Le fichier Liste.txt contient la liste des utilisateur à modifier</p>
<p>Le script propose ensuite quelle valeurs de Quota voulez vous appliquer sur ces comptes.</p>
<p>Le script modifie les attributs suivant :</p>
<p>Emettre un avertissement : <strong><em>mDBStorageQuota</em></strong><br />
Interdire l’envoi à partir de : <strong><em>mDBOverQuotaLimit</em></strong><br />
Interdire l’envoi et la réception à partir de : <strong><em>mDBOverHardQuotaLimit</em></strong></p>
<p><a href="http://www.biletta.fr/wp-content/uploads/2011/09/quota-exchange.jpg"><img title="quota-exchange" src="http://www.biletta.fr/wp-content/uploads/2011/09/quota-exchange.jpg" alt="" width="300" height="288" /></a></p>
<p>&nbsp;</p>
<p>Télécharger les sources : <a href="http://www.biletta.fr/wp-content/uploads/2011/09/Quota-Bal.zip">AutoIT &#8211; Quota Bal.Zip</a><br />
Code source :</p>
<div class="codecolorer-container autoit railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:400px;"><div class="autoit codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #A00FF0; font-style: italic;">#Region</span> <span style="font-style: italic; color: #009933;">;**** Directives created by AutoIt3Wrapper_GUI ****</span><br />
<span style="color: #A00FF0; font-style: italic;">#AutoIt3Wrapper_icon</span><span style="color: #FF0000; font-weight: bold;">=..</span>\example_gui_au3\img\<a href="http://www.autoitscript.com/autoit3/docs/functions/Send.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">send</span></a><span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">ico</span><br />
<span style="color: #A00FF0; font-style: italic;">#AutoIt3Wrapper_UseX64</span><span style="color: #FF0000; font-weight: bold;">=</span>n<br />
<span style="color: #A00FF0; font-style: italic;">#EndRegion</span> <span style="font-style: italic; color: #009933;">;**** Directives created by AutoIt3Wrapper_GUI ****</span><br />
<span style="font-style: italic; color: #669900;">#cs ----------------------------------------------------------------------------<br />
AutoIt Version : 3.3.6.0<br />
Auteur: GAEL BILETTA<br />
<br />
Date modification du script : 08/07/2011<br />
<br />
Fonction du Script :<br />
Configuration de la limite de quota pour les BAL Exchange<br />
#ce</span> <span style="color: #FF0000; font-weight: bold;">----------------------------------------------------------------------------</span><br />
<br />
<span style="color: #F000FF; font-style: italic;">#include</span><br />
<span style="color: #F000FF; font-style: italic;">#include</span><br />
<span style="color: #F000FF; font-style: italic;">#include</span><br />
<br />
<span style="font-style: italic; color: #009933;">; On purge le fichier de résultats (suppression et création)</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/functions/FileDelete.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">FileDelete</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span style="color: #800000; font-weight: bold;"><span style="font-weight: bold; color: #AA0000;">@ScriptDir</span></span></a> <span style="color: #FF0000; font-weight: bold;">&amp;</span>amp<span style="font-style: italic; color: #009933;">; &quot;\result.csv&quot;)</span><br />
<span style="color: #0080FF; font-style: italic; font-weight: bold;">_FileCreate</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span style="color: #800000; font-weight: bold;"><span style="font-weight: bold; color: #AA0000;">@ScriptDir</span></span></a> <span style="color: #FF0000; font-weight: bold;">&amp;</span>amp<span style="font-style: italic; color: #009933;">; &quot;\result.csv&quot;)</span><br />
<br />
<span style="font-style: italic; color: #009933;">; On compte le nombre d'objet dans la liste</span><br />
<span style="font-weight: bold; color: #AA0000;">$object</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #008080;">&quot;&quot;</span><br />
<span style="font-weight: bold; color: #AA0000;">$nb_ligne</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><br />
<span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><br />
<span style="font-weight: bold; color: #AA0000;">$file</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/FileOpen.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">FileOpen</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #008080;">&quot;liste.txt&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">While</span></a> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><br />
<span style="font-weight: bold; color: #AA0000;">$line</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/FileReadLine.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">FileReadLine</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$file</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">If</span></a> <a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span style="color: #800000; font-weight: bold;"><span style="font-weight: bold; color: #AA0000;">@error</span></span></a> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #FF0000; font-weight: bold;">-</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Then</span></a> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">ExitLoop</span></a><br />
<span style="font-weight: bold; color: #AA0000;">$nb_ligne</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$nb_ligne</span> <span style="color: #FF0000; font-weight: bold;">+</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Wend</span></a><br />
<a href="http://www.autoitscript.com/autoit3/docs/functions/FileClose.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">FileClose</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$file</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">if</span></a> <a href="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">MsgBox</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">4</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;Modification Quota Exchange&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;Il y a &quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span>amp<span style="font-style: italic; color: #009933;">; $nb_ligne &amp;amp; &quot; objets à traiter dans le fichier liste.txt, voulez vous continuer ?&quot;) = 6 then</span><br />
<br />
<span style="font-style: italic; color: #009933;">; Vérification des fichiers :</span><br />
<span style="font-weight: bold; color: #AA0000;">$file</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/FileOpen.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">FileOpen</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #008080;">&quot;liste.txt&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<span style="font-weight: bold; color: #AA0000;">$result</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/FileOpen.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">FileOpen</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #008080;">&quot;result.csv&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<span style="font-style: italic; color: #009933;">; Vérifie si l'ouverture du fichier liste.txt est OK</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">If</span></a> <span style="font-weight: bold; color: #AA0000;">$file</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #FF0000; font-weight: bold;">-</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Then</span></a><br />
<a href="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">MsgBox</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;erreur&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;Merci de fermer le fichier liste.txt&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Exit</span></a><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
<span style="font-style: italic; color: #009933;">; Vérifie si l'ouverture du fichier result.txt est OK</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">If</span></a> <span style="font-weight: bold; color: #AA0000;">$result</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #FF0000; font-weight: bold;">-</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Then</span></a><br />
<a href="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">MsgBox</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;erreur&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;Merci de fermer le fichier result.csv&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Exit</span></a><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
<br />
<span style="font-weight: bold; color: #AA0000;">$QuotatAdvert</span><span style="color: #FF0000; font-weight: bold;">=</span><a href="http://www.autoitscript.com/autoit3/docs/functions/InputBox.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">InputBox</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #008080;">&quot;Config Quota Avertissement&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #008080;">&quot;Message d'avertissement à partir de (Taille en Ko)&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #008080;">&quot;450000&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<span style="font-weight: bold; color: #AA0000;">$QuotaLimit</span><span style="color: #FF0000; font-weight: bold;">=</span><a href="http://www.autoitscript.com/autoit3/docs/functions/InputBox.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">InputBox</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #008080;">&quot;Config Quota Limite emission&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #008080;">&quot;Bloquage de l'emission à partir de (Taille en Ko)&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #008080;">&quot;500000&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<span style="font-weight: bold; color: #AA0000;">$QuotaHardLimit</span><span style="color: #FF0000; font-weight: bold;">=</span><a href="http://www.autoitscript.com/autoit3/docs/functions/InputBox.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">InputBox</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #008080;">&quot;Config Quota Limite Reception&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #008080;">&quot;Blocage en réception à partir de (Taille en Ko)&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span><span style="font-weight: bold; color: #008080;">&quot;650000&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<span style="font-weight: bold; color: #AA0000;">$erreur</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">FileWrite</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$result</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;distinguishedName;Quota Actif;Avertissement;Interdire l'envoi;Interdire la reception&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span>amp<span style="font-style: italic; color: #009933;">; @CRLF) ; on ecrit le titre des colonnes du fichier result.csv</span><br />
<br />
<span style="font-style: italic; color: #009933;">; Boucle de traitement (pour chaque ligne du fichier liste.txt on récupère le nom de l'objet et on effectue les modification dans AD)</span><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">While</span></a> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><br />
<span style="font-weight: bold; color: #AA0000;">$object</span> <span style="color: #FF0000; font-weight: bold;">=</span> <a href="http://www.autoitscript.com/autoit3/docs/functions/FileReadLine.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">FileReadLine</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$file</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <span style="font-style: italic; color: #009933;">; on lit le fichier ligne par ligne</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">If</span></a> <a href="http://www.autoitscript.com/autoit3/docs/macros.htm"><span style="color: #800000; font-weight: bold;"><span style="font-weight: bold; color: #AA0000;">@error</span></span></a> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #FF0000; font-weight: bold;">-</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Then</span></a> <a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">ExitLoop</span></a> <span style="font-style: italic; color: #009933;">; si le fichier retourne l'erreur -1 , fin du fichier et on sort de la boucle</span><br />
<span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">+</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span> <span style="font-style: italic; color: #009933;">; compteur incrémentiel pour lister les étapes</span><br />
<br />
<span style="font-style: italic; color: #009933;">; Ouverture de la base AD</span><br />
_AD_Open<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/functions/SplashTextOn.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">SplashTextOn</span></a> <span style="color: #FF0000; font-weight: bold;">&#40;</span> <span style="font-weight: bold; color: #008080;">&quot;Modification Quotas Exchange&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span>amp<span style="font-style: italic; color: #009933;">; &quot; - Avertissement: &quot; &amp;amp; $QuotatAdvert/1000 &amp;amp; &quot; Mo&quot; &amp;amp; &quot; - Emission: &quot; &amp;amp; $QuotaLimit/1000 &amp;amp; &quot; Mo&quot; &amp;amp; &quot; - Reception: &quot; &amp;amp; $QuotaHardLimit/1000 &amp;amp; &quot; Mo&quot;, &quot;Traitement de l'objet - &quot; &amp;amp; $i &amp;amp; &quot;/&quot; &amp;amp; $nb_ligne &amp;amp; &quot; : &quot; &amp;amp; $object, 550 , 50 , -1 , -1 , 4 , &quot;arial&quot; , 1 , 10)</span><br />
<br />
<span style="font-style: italic; color: #009933;">; Récupère le nom complet de l'objet &quot;FQDN&quot;</span><br />
<span style="font-weight: bold; color: #AA0000;">$DN</span> <span style="color: #FF0000; font-weight: bold;">=</span> _AD_GetObjectAttribute<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$object</span> <span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;DistinguishedName&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<span style="font-weight: bold; color: #AA0000;">$QuotatDefaut</span> <span style="color: #FF0000; font-weight: bold;">=</span> _AD_GetObjectAttribute<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$object</span> <span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;mDBUseDefaults&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<span style="font-style: italic; color: #009933;">;$QuotatAdvert = _AD_GetObjectAttribute($object , &quot;mDBStorageQuota&quot;)</span><br />
<span style="font-style: italic; color: #009933;">;$QuotaLimit = _AD_GetObjectAttribute($object , &quot;mDBOverQuotaLimit&quot;)</span><br />
<span style="font-style: italic; color: #009933;">;$QuotaHardLimit = _AD_GetObjectAttribute($object , &quot;mDBOverHardQuotaLimit&quot;)</span><br />
<br />
<span style="font-style: italic; color: #009933;">;if $QuotaLimit and $QuotatDefaut &amp;lt;&amp;gt; &quot;True&quot; Then</span><br />
<br />
<span style="font-style: italic; color: #009933;">;$QuotaHardLimit = $QuotaLimit + ($QuotaLimit / 100) * 30</span><br />
<br />
<span style="font-weight: bold; color: #AA0000;">$SetQuotaAdvert</span> <span style="color: #FF0000; font-weight: bold;">=</span> _AD_ModifyAttribute<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$DN</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;mDBStorageQuota&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span>amp<span style="font-style: italic; color: #009933;">; $QuotatAdvert &amp;amp; &quot;&quot;)</span><br />
<span style="font-weight: bold; color: #AA0000;">$SetQuotaLimit</span> <span style="color: #FF0000; font-weight: bold;">=</span> _AD_ModifyAttribute<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$DN</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;mDBOverQuotaLimit&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span>amp<span style="font-style: italic; color: #009933;">; $QuotaLimit &amp;amp; &quot;&quot;)</span><br />
<span style="font-weight: bold; color: #AA0000;">$SetQuotaHardLimit</span> <span style="color: #FF0000; font-weight: bold;">=</span> _AD_ModifyAttribute<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$DN</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;mDBOverHardQuotaLimit&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span>amp<span style="font-style: italic; color: #009933;">; $QuotaHardLimit &amp;amp; &quot;&quot;)</span><br />
<br />
<span style="font-style: italic; color: #009933;">;EndIf</span><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">FileWrite</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$result</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #AA0000;">$DN</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span>amp<span style="font-style: italic; color: #009933;">; &quot;;&quot; &amp;amp; $QuotatDefaut &amp;amp; &quot;;&quot; &amp;amp; $QuotatAdvert &amp;amp; &quot;;&quot; &amp;amp; $QuotaLimit &amp;amp; &quot;;&quot; &amp;amp; $QuotaHardLimit &amp;amp; @CRLF) ; on ecrit dans le fichier result.txt</span><br />
<br />
_AD_Close<span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">Wend</span></a><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/functions/SplashOff.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">splashOff</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<span style="font-style: italic; color: #009933;">; On ferme l'utilisation des fichiers</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/functions/FileClose.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">FileClose</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$file</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/functions/FileClose.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">FileClose</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$result</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">if</span></a> <span style="font-weight: bold; color: #AA0000;">$erreur</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span>lt<span style="font-style: italic; color: #009933;">;&amp;gt; 0 then</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">MsgBox</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;Fin de l'opération&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;Il y a &quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span>amp<span style="font-style: italic; color: #009933;">; $erreur &amp;amp; &quot; opérations en erreur, consultez le fichiers result.csv&quot;)</span><br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a><br />
<a href="http://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm"><span style="color: #000080; font-style: italic; font-weight: bold;">MsgBox</span></a><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;Modification des Quota&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;Opération terminée. Consulter le fichier result.csv&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><br />
<br />
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm"><span style="color: #0000FF; font-weight: bold;">EndIf</span></a></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.biletta.fr/2011/09/modifier-les-quotas-exchange/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installer Windows 8 sur VirtualBox, même quand ça ne fonctionne pas…</title>
		<link>http://www.biletta.fr/2011/09/installer-windows-8-sur-virtualbox-meme-quand-ca-ne-fonctionne-pas%e2%80%a6/</link>
		<comments>http://www.biletta.fr/2011/09/installer-windows-8-sur-virtualbox-meme-quand-ca-ne-fonctionne-pas%e2%80%a6/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 11:38:38 +0000</pubDate>
		<dc:creator>Gael Biletta</dc:creator>
				<category><![CDATA[Non classé]]></category>

		<guid isPermaLink="false">http://www.biletta.fr/?p=51</guid>
		<description><![CDATA[Après avoir téléchargé Windows 8, j’ai eu quelques galères pour l’installer dans une machine virtuelle Virtualbox. Je suis donc resté dans ma honte quelques heures à bidouiller toutes les options et à fureter sur les forums et j’ai enfin réussi ! Je vais donc vous expliquer comment faire, si au boot de Windows 8, aussi bien avec<a href="http://www.biletta.fr/2011/09/installer-windows-8-sur-virtualbox-meme-quand-ca-ne-fonctionne-pas%e2%80%a6/">&#160;&#160;[ Read More ]</a>]]></description>
			<content:encoded><![CDATA[<h2><span class="Apple-style-span" style="font-size: 13px; font-weight: normal;"><br />
<img title="Installer Windows 8 sur VirtualBox, même quand ça ne fonctionne pas…" src="http://korben.info/wp-content/uploads/2011/09/Win8-En-fonction-Oracle-VM-VirtualBox_2011-09-18_16-20-52.jpg" alt="Installer Windows 8 sur VirtualBox, même quand ça ne fonctionne pas…" width="500" /></span></h2>
<div>
<p>Après avoir <a href="http://korben.info/telecharger-windows-8.html">téléchargé Windows 8</a>, j’ai eu quelques galères pour l’installer dans une machine virtuelle Virtualbox. Je suis donc resté dans ma honte quelques heures à bidouiller toutes les options et à fureter sur les <a title="Forum" href="http://forum.korben.info/">forum</a>s et j’ai enfin réussi ! Je vais donc vous expliquer comment faire, si au boot de Windows 8, aussi bien avec une machine virtuelle tournant sous Windows que sous Linux, vous rencontrez les erreurs suivantes :</p>
<p><a href="http://pictures.korben.info/2011/09/Win8-En-fonction-Oracle-VM-VirtualBox_2011-09-16_18-49-42.jpg"><img title="Win8 [En fonction] - Oracle VM VirtualBox_2011-09-16_18-49-42" src="http://pictures.korben.info/2011/09/Win8-En-fonction-Oracle-VM-VirtualBox_2011-09-16_18-49-42.jpg" alt="Win8 En fonction Oracle VM VirtualBox 2011 09 16 18 49 42 Installer Windows 8 sur VirtualBox, même quand ça ne fonctionne pas..." width="500" /></a></p>
<p>Compter need to restart 0xFFFFFFE6 0x0000001F 0×00000000 0x81B3C6</p>
<p>ou</p>
<p><img title="cap 2011-09-15 à 15.30.54" src="http://pictures.korben.info/2011/09/cap-2011-09-15-%C3%A0-15.30.54.png" alt="cap 2011 09 15 %C3%A0 15.30.54 Installer Windows 8 sur VirtualBox, même quand ça ne fonctionne pas..." width="500" /><br />
Your PC ran into a problem that it couldn’t handle, and now it needs to restart.<br />
You can search for the error online : HAL_INITIALIZATION FAILED</p>
<p>(Oui, c’est bien la tronche du nouvel écran bleu. Personnellement, je l’adore !)</p>
<p><strong>Etape 1 : Vérifiez que vous avez bien activé l’option de virtualisation dans le Bios de votre ordinateur.</strong></p>
<p>Pour vérifier que votre processeur supporte bien cette option, vous pouvez télécharger ce soft<a href="http://www.intel.com/support/processors/tools/piu/sb/CS-014921.htm" target="_blank">fourni par Intel</a> ou celui-ci <a href="http://support.amd.com/us/Pages/dynamicDetails.aspx?ListID=c5cd2c08-1432-4756-aafa-4d9dc646342f&amp;ItemID=177&amp;lang=us" target="_blank">fourni par AMD</a>. Pour Linux, je ne sais pas s’il existe une commande capable de dire ça mais j’imagine que oui. Si vous la connaissez, ça m’intéresse.</p>
<p><a href="http://pictures.korben.info/2011/09/Utilitaire-didentification-du-processeur-IntelR_2011-09-16_18-38-32.jpg"><img title="Utilitaire d'identification du processeur Intel(R)_2011-09-16_18-38-32" src="http://pictures.korben.info/2011/09/Utilitaire-didentification-du-processeur-IntelR_2011-09-16_18-38-32.jpg" alt="Utilitaire didentification du processeur IntelR 2011 09 16 18 38 32 Installer Windows 8 sur VirtualBox, même quand ça ne fonctionne pas..." width="500" /></a></p>
<p>Si vous êtes sous Linux, lancez un terminal et entrez la commande suivante :</p>
<p>Pour un proc Intel : </p>
<div class="codecolorer-container text railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">grep --color vmx /proc/cpuinfo</div></div>
<p>Pour un proc AMD : </p>
<div class="codecolorer-container text railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">grep --color svm /proc/cpuinfo</div></div>
<p>Vous devrez voir alors vmx ou svm s’afficher en couleur. Si c’est le cas, c’est bon, votre processeur supporte la virtualisation. Sinon, c’est mort, vous n’avez plus qu’à changer de machine.</p>
<p><a href="http://pictures.korben.info/2011/09/cap-copie.png"><img title="cap copie" src="http://pictures.korben.info/2011/09/cap-copie.png" alt="cap copie Installer Windows 8 sur VirtualBox, même quand ça ne fonctionne pas..." width="500" /></a></p>
<p>Ensuite, dans le bios de votre PC, partez à la recherche de la fameuse option de virtualisation alias VTx/VTd) et activez là !</p>
<p><img title="IMG_20110918_151508" src="http://pictures.korben.info/2011/09/IMG_20110918_151508.jpg" alt="IMG 20110918 151508 Installer Windows 8 sur VirtualBox, même quand ça ne fonctionne pas..." width="500" /><a href="http://pictures.korben.info/2011/09/IMG_20110918_151508.jpg"><br />
</a>Chez moi, c’était désactivé, d’où mes galères pour installer le machin</p>
<p>Voilà, déjà une bonne chose de faite.</p>
<p><strong>Etape n°2 : Virtualbox</strong></p>
<p>Il vous faut la <a href="http://www.virtualbox.org/" target="_blank">dernière version</a>… Une 4.1.2 au minimum.</p>
<p>Créez une nouvelle machine virtuelle, en choisissant Windows 7 comme système d’exploitation. (Et 64 bits, si vous prévoyez d’installer Windows en 64 bits)</p>
<p><a href="http://pictures.korben.info/2011/09/Cr%C3%A9er-une-nouvelle-machine-virtuelle_2011-09-18_15-57-56.jpg"><img title="Créer une nouvelle machine virtuelle_2011-09-18_15-57-56" src="http://pictures.korben.info/2011/09/Cr%C3%A9er-une-nouvelle-machine-virtuelle_2011-09-18_15-57-56.jpg" alt="Cr%C3%A9er une nouvelle machine virtuelle 2011 09 18 15 57 56 Installer Windows 8 sur VirtualBox, même quand ça ne fonctionne pas..." width="500" /></a></p>
<p>Mettez 1 Go de mémoire au minimum</p>
<p><a href="http://pictures.korben.info/2011/09/Cr%C3%A9er-une-nouvelle-machine-virtuelle_2011-09-18_15-58-32.jpg"><img title="Créer une nouvelle machine virtuelle_2011-09-18_15-58-32" src="http://pictures.korben.info/2011/09/Cr%C3%A9er-une-nouvelle-machine-virtuelle_2011-09-18_15-58-32.jpg" alt="Cr%C3%A9er une nouvelle machine virtuelle 2011 09 18 15 58 32 Installer Windows 8 sur VirtualBox, même quand ça ne fonctionne pas..." width="500" /></a></p>
<p>Créez un nouveau disque dur (VDI) de taille fixe… 20 Go semble bien mais vous pouvez mettre moins.</p>
<p><a href="http://pictures.korben.info/2011/09/Cr%C3%A9er-un-nouveau-disque-virtuel_2011-09-18_15-59-43.jpg"><img title="Créer un nouveau disque virtuel_2011-09-18_15-59-43" src="http://pictures.korben.info/2011/09/Cr%C3%A9er-un-nouveau-disque-virtuel_2011-09-18_15-59-43.jpg" alt="Cr%C3%A9er un nouveau disque virtuel 2011 09 18 15 59 43 Installer Windows 8 sur VirtualBox, même quand ça ne fonctionne pas..." width="500" /></a></p>
<p>Une fois le disque créé, et la machine virtuelle créée, allez faire un tour dans les paramètres de la machine virtuelle.</p>
<p>Dans Système, onglet Carte Mère, choisissez le chipset PIIX3, et cochez uniquement la case IO-APIC et celle concernant le périphérique de pointage absolu.</p>
<p><a href="http://pictures.korben.info/2011/09/Win8Test-Param%C3%A8tres_2011-09-18_16-08-16.jpg"><img title="Win8Test - Paramètres_2011-09-18_16-08-16" src="http://pictures.korben.info/2011/09/Win8Test-Param%C3%A8tres_2011-09-18_16-08-16.jpg" alt="Win8Test Param%C3%A8tres 2011 09 18 16 08 16 Installer Windows 8 sur VirtualBox, même quand ça ne fonctionne pas..." width="500" /></a></p>
<p>Dans l’onglet Processeur, choisissez le nombre de processeur équivalent à celui de votre ordinateur et activez PAE/NX</p>
<p><a href="http://pictures.korben.info/2011/09/Win8Test-Param%C3%A8tres_2011-09-18_16-08-09.jpg"><img title="Win8Test - Paramètres_2011-09-18_16-08-09" src="http://pictures.korben.info/2011/09/Win8Test-Param%C3%A8tres_2011-09-18_16-08-09.jpg" alt="Win8Test Param%C3%A8tres 2011 09 18 16 08 09 Installer Windows 8 sur VirtualBox, même quand ça ne fonctionne pas..." width="500" /></a></p>
<p>Enfin, dans l’onglet accélération, cochez les 2 cases (VTx et pagination imbriquée)</p>
<p><a href="http://pictures.korben.info/2011/09/Win8Test-Param%C3%A8tres_2011-09-18_16-09-01.jpg"><img title="Win8Test - Paramètres_2011-09-18_16-09-01" src="http://pictures.korben.info/2011/09/Win8Test-Param%C3%A8tres_2011-09-18_16-09-01.jpg" alt="Win8Test Param%C3%A8tres 2011 09 18 16 09 01 Installer Windows 8 sur VirtualBox, même quand ça ne fonctionne pas..." width="500" /></a></p>
<p>Dans Affichage, cochez les 2 cases d’accélération (2D et 3D)</p>
<p><a href="http://pictures.korben.info/2011/09/Win8Test-Param%C3%A8tres_2011-09-18_16-09-41.jpg"><img title="Win8Test - Paramètres_2011-09-18_16-09-41" src="http://pictures.korben.info/2011/09/Win8Test-Param%C3%A8tres_2011-09-18_16-09-41.jpg" alt="Win8Test Param%C3%A8tres 2011 09 18 16 09 41 Installer Windows 8 sur VirtualBox, même quand ça ne fonctionne pas..." width="500" /></a></p>
<p>Ensuite, dans la section stockage, on va enlever le disque en SATA et le remettre en IDE. Celui-ci doit être en maitre primaire et le lecteur DVD en maitre secondaire.</p>
<p><img title="Win8Test - Paramètres_2011-09-18_16-11-37" src="http://pictures.korben.info/2011/09/Win8Test-Param%C3%A8tres_2011-09-18_16-11-37.jpg" alt="Win8Test Param%C3%A8tres 2011 09 18 16 11 37 Installer Windows 8 sur VirtualBox, même quand ça ne fonctionne pas..." width="500" /></p>
<p>Chargez ensuite l’ISO de Windows 8. Si vous ne l’avez pas encore téléchargé, <a href="http://korben.info/telecharger-windows-8.html">c’est par ici que ça se passe</a>.</p>
<p><img title="Program Manager_2011-09-18_16-11-45" src="http://pictures.korben.info/2011/09/Program-Manager_2011-09-18_16-11-45.jpg" alt="Program Manager 2011 09 18 16 11 45 Installer Windows 8 sur VirtualBox, même quand ça ne fonctionne pas..." width="500" /></p>
<p>Le reste des options, vous pouvez laisser tel quel.</p>
<p>Et ensuite, y’a plus qu’à démarrer la machine virtuelle et à croiser les doigts. Pour l’install de Windows, je vous laisse vous débrouiller. C’est tellement intuitif que vous n’avez pas besoin de moi !</p>
<p>2 choses à savoir :</p>
<ul>
<li>Pour que les widgets fonctionnent, il faut passer votre écran en 1024×768 au minimum. Je me demandais pourquoi rien ne se lançait lorsque je cliquais comme un acharné sur le widget Météo, mais j’ai trouvé ! Pour changer la résolution, cliquez sur le widget « Desktop », clic droit sur le bureau « Screen Resolution »</li>
<li>Si une résolution supérieure n’est pas disponible, il vous faudra installer les outils Virtualbox (Guest Additions), merveilleusement bien traduits en français par Additions Invité. Cliquez sur « Installez les Additions invité » dans le menu « Périphériques » pour monter l’ISO dans Windows</li>
</ul>
<p>Mais pas de bol, ces derniers ne s’installent pas sous Windows 8. J’ai essayé et je me suis retrouvé avec ça :</p>
<p><a href="http://pictures.korben.info/2011/09/Greenshot_2011-09-18_16-27-33.jpg"><img title="Greenshot_2011-09-18_16-27-33" src="http://pictures.korben.info/2011/09/Greenshot_2011-09-18_16-27-33.jpg" alt="Greenshot 2011 09 18 16 27 33 Installer Windows 8 sur VirtualBox, même quand ça ne fonctionne pas..." width="512" height="399" /></a></p>
<p>Rendez vous sur le CD monté, et faites un clic droit -&gt; Properties sur le binaire VBoxWindowsAdditions-x86. Ensuite dans l’onglet « Compatibility », cochez la case « Run this program… » et sélectionnez Windows 7. Validez et relancez ensuite VBoxWindowsAdditions-x86.exe. Tout devrait s’installer parfaitement, vous donnant accès à toutes les possibilités de la machine virtuelle (et aux résolutions d’écran plus hautes).</p>
<p><a href="http://pictures.korben.info/2011/09/Win8-En-fonction-Oracle-VM-VirtualBox_2011-09-18_16-29-50.jpg"><img title="Win8 [En fonction] - Oracle VM VirtualBox_2011-09-18_16-29-50" src="http://pictures.korben.info/2011/09/Win8-En-fonction-Oracle-VM-VirtualBox_2011-09-18_16-29-50.jpg" alt="Win8 En fonction Oracle VM VirtualBox 2011 09 18 16 29 50 Installer Windows 8 sur VirtualBox, même quand ça ne fonctionne pas..." width="557" height="578" /></a></p>
<p>Sur l’un de mes ordis, j’ai eu l’erreur suivante : « <em>ERROR: Could not install files for Windows 2000 / XP / Vista! Installation aborted</em> » et je n’ai malheureusement pas encore trouvé la solution. Donc si quelqu’un a une idée, je suis preneur.</p>
<p>Si après ce tuto, vous rencontriez encore des petits soucis, n’hésitez pas à jouer avec les options… Par exemple, en changeant le chipset de la carte mère dans Virtualbox. On ne sait jamais, sur un malentendu…</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.biletta.fr/2011/09/installer-windows-8-sur-virtualbox-meme-quand-ca-ne-fonctionne-pas%e2%80%a6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

