<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Create Fake Dummy File on USB Flash Drive to Enable Write Protect and Prevent Modification</title> <atom:link href="http://www.raymond.cc/blog/create-fake-dummy-file-on-usb-flash-drive-to-enable-write-protect-and-prevent-modification/feed/" rel="self" type="application/rss+xml" /><link>http://www.raymond.cc/blog/create-fake-dummy-file-on-usb-flash-drive-to-enable-write-protect-and-prevent-modification/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=create-fake-dummy-file-on-usb-flash-drive-to-enable-write-protect-and-prevent-modification</link> <description>Daily updated news of useful advanced computer tips and tricks</description> <lastBuildDate>Fri, 25 May 2012 15:54:13 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/><xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>By: DJ Katon Amaro</title><link>http://www.raymond.cc/blog/create-fake-dummy-file-on-usb-flash-drive-to-enable-write-protect-and-prevent-modification/#comment-503529</link> <dc:creator>DJ Katon Amaro</dc:creator> <pubDate>Thu, 16 Dec 2010 13:11:53 +0000</pubDate> <guid
isPermaLink="false">http://www.raymond.cc/blog/?p=3464#comment-503529</guid> <description>hahaha..Dude this method completely froze out a flash of mines...well im happy this flash is on borrowed time!</description> <content:encoded><![CDATA[<p>hahaha..Dude this method completely froze out a flash of mines&#8230;well im happy this flash is on borrowed time!</p> ]]></content:encoded> </item> <item><title>By: Impx</title><link>http://www.raymond.cc/blog/create-fake-dummy-file-on-usb-flash-drive-to-enable-write-protect-and-prevent-modification/#comment-496532</link> <dc:creator>Impx</dc:creator> <pubDate>Sat, 13 Nov 2010 20:30:43 +0000</pubDate> <guid
isPermaLink="false">http://www.raymond.cc/blog/?p=3464#comment-496532</guid> <description>Nice one bro, sorted my 8gb drive by formatting NTFS so I just had to use one file.@Terry, I had the same issue first time I tried, I hit enter a couple times and nothing happened then after about 30sec the commands came through and the command window closed gracefully.</description> <content:encoded><![CDATA[<p>Nice one bro, sorted my 8gb drive by formatting NTFS so I just had to use one file.</p><p>@Terry, I had the same issue first time I tried, I hit enter a couple times and nothing happened then after about 30sec the commands came through and the command window closed gracefully.</p> ]]></content:encoded> </item> <item><title>By: Terry</title><link>http://www.raymond.cc/blog/create-fake-dummy-file-on-usb-flash-drive-to-enable-write-protect-and-prevent-modification/#comment-491803</link> <dc:creator>Terry</dc:creator> <pubDate>Wed, 22 Sep 2010 07:09:17 +0000</pubDate> <guid
isPermaLink="false">http://www.raymond.cc/blog/?p=3464#comment-491803</guid> <description>Using fsutil to create a file of a specific size on my pen drive works for me, but I don&#039;t get a command prompt after the file has been created. The only thing I see is a flashing cursor.I can&#039;t close the command prompt by clicking the &quot;X&quot; and nothing appears when I type &quot;exit&quot;. I&#039;ve tried ending task on it in Task Manager, but that doesn&#039;t work either and I&#039;m forced to reboot as the only means of closing it.Can anybody provide a clue as to why this is happening?</description> <content:encoded><![CDATA[<p>Using fsutil to create a file of a specific size on my pen drive works for me, but I don&#8217;t get a command prompt after the file has been created. The only thing I see is a flashing cursor.</p><p>I can&#8217;t close the command prompt by clicking the &#8220;X&#8221; and nothing appears when I type &#8220;exit&#8221;. I&#8217;ve tried ending task on it in Task Manager, but that doesn&#8217;t work either and I&#8217;m forced to reboot as the only means of closing it.</p><p>Can anybody provide a clue as to why this is happening?</p> ]]></content:encoded> </item> <item><title>By: Lapsy</title><link>http://www.raymond.cc/blog/create-fake-dummy-file-on-usb-flash-drive-to-enable-write-protect-and-prevent-modification/#comment-490644</link> <dc:creator>Lapsy</dc:creator> <pubDate>Thu, 09 Sep 2010 13:07:57 +0000</pubDate> <guid
isPermaLink="false">http://www.raymond.cc/blog/?p=3464#comment-490644</guid> <description>Hi all!
Have to comment on this as it has assisted me in an issue I am trying to solve with USB.
Had not thought of the virus issue, overlooked it, but this seems like a simple solution. This is only one half of my story though.
I am like most USB fanatics currently searching for a way to lock a file (either .exe or ISO) to a partition on a USB drive. I do not want the file to be modified, do not want drag &amp; drop options, do not want the file to be copied. Read only if possible &amp; most importantly format proof to prevent accidental wiping of the data (hence the reason I want 2 partitions to keep idiots away from the locked data or overloading the partition with data, which may cause issues.
I have looked at CDFS partitions however my file could be more than 4 GB which is looking impossible for CDFS to handle due to the CD format allowing 650-700MB.
I found this post useful as it will let me fill up the remaining space on the partition to stop any extra data transfer onto the partition containing my .exe or ISO.
I am looking at mass production of USB&#039;s with my data on it for business promo. It seems there are macines which can duplicate USB in the method I require. My main issue is sending the data overseas to E.G - China - The masters of replicas. Would like to keep the data within my own State/Country &amp; create from home if possible.
There has to be a way to do this. I notice if I use a search engine &amp; type &quot;Add Ready only&quot; or &quot;Write protect USB&quot; the results seem to be the complete opposite &amp; rave on about removal of write protection on USB!?
I have researched the U3 device, but makes no sense having to go to those lengths just to write protect a file!
I even have the file already encrypted, its just a matter of making it permanet on the USB partition. Is there anyone out there who can shed light on the missing link to my problem - Write Protecting a file on a standard USB ? Do not suggest Password protect programs such a file lock as they do not do the job I am looking for.
I did check this site -
blog.usboffice.kr/?p=146The USB I am using is Vendor ID = 090c  =&gt; SMI Chip ( SMI vendor ID can be different than “090c ” )  Same as the instructions indicate. When attempting to partition for a CDFS (although eventually useless I thought  due to the 650-700Mb limit, I would try to learn more &amp; have a go)
Strangely the program worked as stated, except it limited my usb to a 50MB partition. In the diagram it shows 600+Mb.Anyone got any ideas? Have also played with hidden partitions which were cool (ROHOS Seemed the best for me) &amp; did have password entry, but seemed useless as I am still able to format the USB. I wouldn&#039;t say its idiot proof! I also have to display the manufactures logo for the software which is a bit of a lead to cracking the security as people know what I have used to lock it.
Basically want to be able to hand out a USB stick for someone to take away, knowing they wont delete it accidentally. I understand there is always more than one way to skin a cat when it comes to copying something &amp; not always full proof. But has to be a way to secure it as much as possible to the USB.
Banged head against screen many time &amp; pulled hair out attemting to find the answer to this without forking out cash &amp; sending data overseas to save money.Come on!!! Someone out there knows something about something here!!!!
Reply&#039;s greatly appreciated!
Thanks for reading &amp; sorry to blabber on so long, had this topic contained for a while &amp; it needs to get out!</description> <content:encoded><![CDATA[<p>Hi all!<br
/> Have to comment on this as it has assisted me in an issue I am trying to solve with USB.<br
/> Had not thought of the virus issue, overlooked it, but this seems like a simple solution. This is only one half of my story though.<br
/> I am like most USB fanatics currently searching for a way to lock a file (either .exe or ISO) to a partition on a USB drive. I do not want the file to be modified, do not want drag &amp; drop options, do not want the file to be copied. Read only if possible &amp; most importantly format proof to prevent accidental wiping of the data (hence the reason I want 2 partitions to keep idiots away from the locked data or overloading the partition with data, which may cause issues.<br
/> I have looked at CDFS partitions however my file could be more than 4 GB which is looking impossible for CDFS to handle due to the CD format allowing 650-700MB.<br
/> I found this post useful as it will let me fill up the remaining space on the partition to stop any extra data transfer onto the partition containing my .exe or ISO.<br
/> I am looking at mass production of USB&#8217;s with my data on it for business promo. It seems there are macines which can duplicate USB in the method I require. My main issue is sending the data overseas to E.G &#8211; China &#8211; The masters of replicas. Would like to keep the data within my own State/Country &amp; create from home if possible.<br
/> There has to be a way to do this. I notice if I use a search engine &amp; type &#8220;Add Ready only&#8221; or &#8220;Write protect USB&#8221; the results seem to be the complete opposite &amp; rave on about removal of write protection on USB!?<br
/> I have researched the U3 device, but makes no sense having to go to those lengths just to write protect a file!<br
/> I even have the file already encrypted, its just a matter of making it permanet on the USB partition. Is there anyone out there who can shed light on the missing link to my problem &#8211; Write Protecting a file on a standard USB ? Do not suggest Password protect programs such a file lock as they do not do the job I am looking for.<br
/> I did check this site &#8211;<br
/> blog.usboffice.kr/?p=146</p><p>The USB I am using is Vendor ID = 090c  =&gt; SMI Chip ( SMI vendor ID can be different than “090c ” )  Same as the instructions indicate. When attempting to partition for a CDFS (although eventually useless I thought  due to the 650-700Mb limit, I would try to learn more &amp; have a go)<br
/> Strangely the program worked as stated, except it limited my usb to a 50MB partition. In the diagram it shows 600+Mb.</p><p> Anyone got any ideas? Have also played with hidden partitions which were cool (ROHOS Seemed the best for me) &amp; did have password entry, but seemed useless as I am still able to format the USB. I wouldn&#8217;t say its idiot proof! I also have to display the manufactures logo for the software which is a bit of a lead to cracking the security as people know what I have used to lock it.<br
/> Basically want to be able to hand out a USB stick for someone to take away, knowing they wont delete it accidentally. I understand there is always more than one way to skin a cat when it comes to copying something &amp; not always full proof. But has to be a way to secure it as much as possible to the USB.<br
/> Banged head against screen many time &amp; pulled hair out attemting to find the answer to this without forking out cash &amp; sending data overseas to save money.</p><p> Come on!!! Someone out there knows something about something here!!!!<br
/> Reply&#8217;s greatly appreciated!<br
/> Thanks for reading &amp; sorry to blabber on so long, had this topic contained for a while &amp; it needs to get out!</p> ]]></content:encoded> </item> <item><title>By: Hackoo</title><link>http://www.raymond.cc/blog/create-fake-dummy-file-on-usb-flash-drive-to-enable-write-protect-and-prevent-modification/#comment-482044</link> <dc:creator>Hackoo</dc:creator> <pubDate>Tue, 13 Jul 2010 08:54:40 +0000</pubDate> <guid
isPermaLink="false">http://www.raymond.cc/blog/?p=3464#comment-482044</guid> <description>Hi ! This is an update of my VBscript I added a function to check if your Flash disk is connected on your machine or not. Enjoy it ;)
&#039;-------------------------------
‘hackoo.ifrance.com
&#039;© Hackoo ©
checkUSB
DummyFileCreator
&#039;---------------DummyFileCreator----------------------
Sub DummyFileCreator
Dim WshShell,FSO,Drv,Dtype,Dfree,DfreeMB,Dtot
Dim Dname,Dpct,Dused,Dserial,Dinfo
Set WshShell=WScript.CreateObject(&quot;WScript.Shell&quot;)
Set FSO=CreateObject(&quot;Scripting.FileSystemObject&quot;)
For each Drv in FSO.Drives
&#039;If Drv.DriveType=0 Then Dtype=&quot;Unknown &quot;
&#039;If Drv.DriveType=1 Then Dtype=&quot;Removable&quot;
&#039;If Drv.DriveType=2 Then Dtype=&quot;Fixed &quot;
&#039;If Drv.DriveType=3 Then Dtype=&quot;Network &quot;
&#039;If Drv.DriveType=4 Then Dtype=&quot;CD-ROM &quot;
&#039;If Drv.DriveType=5 Then Dtype=&quot;RAM Disk &quot;
If Drv.DriveType=1 Then &#039; Disk Amovible Flash Disk
If Drv.IsReady Then &#039; Si le Flash Disk est prêt
Dfree=Drv.FreeSpace
DfreeMB=FormatNumber(Drv.FreeSpace/(1024^2),0)&amp;&quot; Mo&quot;
&#039;EspaceLibre = Drv.FreeSpace
GB=round(Dfree/1073741824,2) &amp; &quot; Go&quot;
Label=Drv.DriveLetter
&#039;checkUSB
&#039;wscript.sleep 1000
MsgBox &quot;Espace Libre dans Le Flash Disk &quot;&amp;Label&amp;&quot;:\&quot;&amp;&quot; est Environ de &quot; &amp;GB&amp; &quot; soit environ &quot;&amp;DfreeMB,64,&quot;Espace Libre&quot;
WshShell.run &quot;cmd /c fsutil file createnew &quot;&amp;Label&amp;&quot;:\IamDummy &quot; &amp;Dfree&amp;&quot;&quot;,0,True
WshShell.Run &quot;cmd /C attrib +h +s &quot;&amp;Label&amp;&quot;:\IamDummy&quot;,0,TRUE
end if
end if
Next
end Sub
&#039;-----------------checkUSB-----------------------
Sub checkUSB
strComputer = &quot;.&quot;
On Error Resume Next
Set WshShell = CreateObject(&quot;Wscript.Shell&quot;)
beep = chr(007)
Set objWMIService = GetObject(&quot;winmgmts:\\&quot; &amp; strComputer &amp; &quot;\root\cimv2&quot;)
Set colItems = objWMIService.ExecQuery(&quot;Select * from Win32_DiskDrive WHERE InterfaceType=&#039;USB&#039;&quot;,,48)
intCount = 0
For Each drive In colItems
If drive.mediaType  &quot;&quot; Then
intCount = intCount + 1
End If
Next
If intCount &gt; 0 Then
MsgBox &quot;Votre Flash Disk est bien Connecté !&quot;,64,&quot;Flash Drive Check !&quot;
else
WshShell.Run &quot;cmd /c @echo &quot; &amp; beep, 0
wscript.sleep 1000
MsgBox &quot;Votre Flash n&#039;est pas Connecté &quot;,64,&quot;Flash Drive Check !&quot;
End If
End Sub
&#039;-----------End of DummyFileCreator.vbs-------------And This Code is used to delete The Fake Dummy File and so let you write into your pendrive.&#039;----------------NoDummyFile.vbs---------------
‘hackoo.ifrance.com
&#039;© Hackoo ©
checkUSB
NoDummyFile
&#039;----------------------------------------------------
sub NoDummyFile
Dim WshShell,FSO,Drv,Dtype,Dfree,DfreeMB,Dtot
Dim Dname,Dpct,Dused,Dserial,Dinfo,filespec
Set WshShell=WScript.CreateObject(&quot;WScript.Shell&quot;)
Set FSO=CreateObject(&quot;Scripting.FileSystemObject&quot;)
filespec=&quot;IamDummy&quot;
For each Drv in FSO.Drives
&#039;If Drv.DriveType=0 Then Dtype=&quot;Unknown &quot;
&#039;If Drv.DriveType=1 Then Dtype=&quot;Removable&quot;
&#039;If Drv.DriveType=2 Then Dtype=&quot;Fixed &quot;
&#039;If Drv.DriveType=3 Then Dtype=&quot;Network &quot;
&#039;If Drv.DriveType=4 Then Dtype=&quot;CD-ROM &quot;
&#039;If Drv.DriveType=5 Then Dtype=&quot;RAM Disk &quot;
If Drv.IsReady Then
If Drv.DriveType=1 Then
Dfree=Drv.FreeSpace
DfreeMB=FormatNumber(Drv.FreeSpace/(1024^2),0)&amp;&quot; MB&quot;
Label=Drv.DriveLetter
If (fso.FileExists(Label&amp;&quot;:\IamDummy&quot;)) Then
Set MyFile = fso.GetFile(Label&amp;&quot;:\IamDummy&quot;)
MyFile.Delete
End If
MsgBox &quot;Espace Libre dans Le Flash Disk &quot;&amp;Label&amp;&quot;:\&quot;&amp;&quot; est Environ de &quot; &amp;DfreeMB,64,&quot;Espace Libre&quot;
end if
end if
Next
end Sub
&#039;-----------------checkUSB-----------------------
Sub checkUSB
strComputer = &quot;.&quot;
On Error Resume Next
Set WshShell = CreateObject(&quot;Wscript.Shell&quot;)
beep = chr(007)
Set objWMIService = GetObject(&quot;winmgmts:\\&quot; &amp; strComputer &amp; &quot;\root\cimv2&quot;)
Set colItems = objWMIService.ExecQuery(&quot;Select * from Win32_DiskDrive WHERE InterfaceType=&#039;USB&#039;&quot;,,48)
intCount = 0
For Each drive In colItems
If drive.mediaType  &quot;&quot; Then
intCount = intCount + 1
End If
Next
If intCount &gt; 0 Then
MsgBox &quot;Votre Flash Disk est bien Connecté !&quot;,64,&quot;Flash Drive Check !&quot;
else
WshShell.Run &quot;cmd /c @echo &quot; &amp; beep, 0
wscript.sleep 1000
MsgBox &quot;Votre Flash n&#039;est pas Connecté &quot;,64,&quot;Flash Drive Check !&quot;
End If
End Sub
‘—————-End of NoDummyFile.vbs—————-</description> <content:encoded><![CDATA[<p>Hi ! This is an update of my VBscript I added a function to check if your Flash disk is connected on your machine or not. Enjoy it ;)<br
/> &#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br
/> ‘hackoo.ifrance.com<br
/> &#8216;© Hackoo ©<br
/> checkUSB<br
/> DummyFileCreator<br
/> &#8216;&#8212;&#8212;&#8212;&#8212;&#8212;DummyFileCreator&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br
/> Sub DummyFileCreator<br
/> Dim WshShell,FSO,Drv,Dtype,Dfree,DfreeMB,Dtot<br
/> Dim Dname,Dpct,Dused,Dserial,Dinfo<br
/> Set WshShell=WScript.CreateObject(&#8220;WScript.Shell&#8221;)<br
/> Set FSO=CreateObject(&#8220;Scripting.FileSystemObject&#8221;)<br
/> For each Drv in FSO.Drives<br
/> &#8216;If Drv.DriveType=0 Then Dtype=&#8221;Unknown &#8221;<br
/> &#8216;If Drv.DriveType=1 Then Dtype=&#8221;Removable&#8221;<br
/> &#8216;If Drv.DriveType=2 Then Dtype=&#8221;Fixed &#8221;<br
/> &#8216;If Drv.DriveType=3 Then Dtype=&#8221;Network &#8221;<br
/> &#8216;If Drv.DriveType=4 Then Dtype=&#8221;CD-ROM &#8221;<br
/> &#8216;If Drv.DriveType=5 Then Dtype=&#8221;RAM Disk &#8221;<br
/> If Drv.DriveType=1 Then &#8216; Disk Amovible Flash Disk<br
/> If Drv.IsReady Then &#8216; Si le Flash Disk est prêt<br
/> Dfree=Drv.FreeSpace<br
/> DfreeMB=FormatNumber(Drv.FreeSpace/(1024^2),0)&amp;&#8221; Mo&#8221;<br
/> &#8216;EspaceLibre = Drv.FreeSpace<br
/> GB=round(Dfree/1073741824,2) &amp; &#8221; Go&#8221;<br
/> Label=Drv.DriveLetter<br
/> &#8216;checkUSB<br
/> &#8216;wscript.sleep 1000<br
/> MsgBox &#8220;Espace Libre dans Le Flash Disk &#8220;&amp;Label&amp;&#8221;:\&#8221;&amp;&#8221; est Environ de &#8221; &amp;GB&amp; &#8221; soit environ &#8220;&amp;DfreeMB,64,&#8221;Espace Libre&#8221;<br
/> WshShell.run &#8220;cmd /c fsutil file createnew &#8220;&amp;Label&amp;&#8221;:\IamDummy &#8221; &amp;Dfree&amp;&#8221;",0,True<br
/> WshShell.Run &#8220;cmd /C attrib +h +s &#8220;&amp;Label&amp;&#8221;:\IamDummy&#8221;,0,TRUE<br
/> end if<br
/> end if<br
/> Next<br
/> end Sub<br
/> &#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;checkUSB&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br
/> Sub checkUSB<br
/> strComputer = &#8220;.&#8221;<br
/> On Error Resume Next<br
/> Set WshShell = CreateObject(&#8220;Wscript.Shell&#8221;)<br
/> beep = chr(007)<br
/> Set objWMIService = GetObject(&#8220;winmgmts:\\&#8221; &amp; strComputer &amp; &#8220;\root\cimv2&#8243;)<br
/> Set colItems = objWMIService.ExecQuery(&#8220;Select * from Win32_DiskDrive WHERE InterfaceType=&#8217;USB&#8217;&#8221;,,48)<br
/> intCount = 0<br
/> For Each drive In colItems<br
/> If drive.mediaType  &#8220;&#8221; Then<br
/> intCount = intCount + 1<br
/> End If<br
/> Next<br
/> If intCount &gt; 0 Then<br
/> MsgBox &#8220;Votre Flash Disk est bien Connecté !&#8221;,64,&#8221;Flash Drive Check !&#8221;<br
/> else<br
/> WshShell.Run &#8220;cmd /c @echo &#8221; &amp; beep, 0<br
/> wscript.sleep 1000<br
/> MsgBox &#8220;Votre Flash n&#8217;est pas Connecté &#8220;,64,&#8221;Flash Drive Check !&#8221;<br
/> End If<br
/> End Sub<br
/> &#8216;&#8212;&#8212;&#8212;&#8211;End of DummyFileCreator.vbs&#8212;&#8212;&#8212;&#8212;-</p><p>And This Code is used to delete The Fake Dummy File and so let you write into your pendrive.</p><p>&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;-NoDummyFile.vbs&#8212;&#8212;&#8212;&#8212;&#8212;<br
/> ‘hackoo.ifrance.com<br
/> &#8216;© Hackoo ©<br
/> checkUSB<br
/> NoDummyFile<br
/> &#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br
/> sub NoDummyFile<br
/> Dim WshShell,FSO,Drv,Dtype,Dfree,DfreeMB,Dtot<br
/> Dim Dname,Dpct,Dused,Dserial,Dinfo,filespec<br
/> Set WshShell=WScript.CreateObject(&#8220;WScript.Shell&#8221;)<br
/> Set FSO=CreateObject(&#8220;Scripting.FileSystemObject&#8221;)<br
/> filespec=&#8221;IamDummy&#8221;<br
/> For each Drv in FSO.Drives<br
/> &#8216;If Drv.DriveType=0 Then Dtype=&#8221;Unknown &#8221;<br
/> &#8216;If Drv.DriveType=1 Then Dtype=&#8221;Removable&#8221;<br
/> &#8216;If Drv.DriveType=2 Then Dtype=&#8221;Fixed &#8221;<br
/> &#8216;If Drv.DriveType=3 Then Dtype=&#8221;Network &#8221;<br
/> &#8216;If Drv.DriveType=4 Then Dtype=&#8221;CD-ROM &#8221;<br
/> &#8216;If Drv.DriveType=5 Then Dtype=&#8221;RAM Disk &#8221;<br
/> If Drv.IsReady Then<br
/> If Drv.DriveType=1 Then<br
/> Dfree=Drv.FreeSpace<br
/> DfreeMB=FormatNumber(Drv.FreeSpace/(1024^2),0)&amp;&#8221; MB&#8221;<br
/> Label=Drv.DriveLetter<br
/> If (fso.FileExists(Label&amp;&#8221;:\IamDummy&#8221;)) Then<br
/> Set MyFile = fso.GetFile(Label&amp;&#8221;:\IamDummy&#8221;)<br
/> MyFile.Delete<br
/> End If<br
/> MsgBox &#8220;Espace Libre dans Le Flash Disk &#8220;&amp;Label&amp;&#8221;:\&#8221;&amp;&#8221; est Environ de &#8221; &amp;DfreeMB,64,&#8221;Espace Libre&#8221;<br
/> end if<br
/> end if<br
/> Next<br
/> end Sub<br
/> &#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;checkUSB&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br
/> Sub checkUSB<br
/> strComputer = &#8220;.&#8221;<br
/> On Error Resume Next<br
/> Set WshShell = CreateObject(&#8220;Wscript.Shell&#8221;)<br
/> beep = chr(007)<br
/> Set objWMIService = GetObject(&#8220;winmgmts:\\&#8221; &amp; strComputer &amp; &#8220;\root\cimv2&#8243;)<br
/> Set colItems = objWMIService.ExecQuery(&#8220;Select * from Win32_DiskDrive WHERE InterfaceType=&#8217;USB&#8217;&#8221;,,48)<br
/> intCount = 0<br
/> For Each drive In colItems<br
/> If drive.mediaType  &#8220;&#8221; Then<br
/> intCount = intCount + 1<br
/> End If<br
/> Next<br
/> If intCount &gt; 0 Then<br
/> MsgBox &#8220;Votre Flash Disk est bien Connecté !&#8221;,64,&#8221;Flash Drive Check !&#8221;<br
/> else<br
/> WshShell.Run &#8220;cmd /c @echo &#8221; &amp; beep, 0<br
/> wscript.sleep 1000<br
/> MsgBox &#8220;Votre Flash n&#8217;est pas Connecté &#8220;,64,&#8221;Flash Drive Check !&#8221;<br
/> End If<br
/> End Sub<br
/> ‘—————-End of NoDummyFile.vbs—————-</p> ]]></content:encoded> </item> <item><title>By: Vinay Swastik</title><link>http://www.raymond.cc/blog/create-fake-dummy-file-on-usb-flash-drive-to-enable-write-protect-and-prevent-modification/#comment-471556</link> <dc:creator>Vinay Swastik</dc:creator> <pubDate>Wed, 07 Apr 2010 02:57:20 +0000</pubDate> <guid
isPermaLink="false">http://www.raymond.cc/blog/?p=3464#comment-471556</guid> <description>This is the best solution I&#039;ve found out to protect my USB Flash Drive from the useless worms and viruses.Thanks for the awesome post.</description> <content:encoded><![CDATA[<p>This is the best solution I&#8217;ve found out to protect my USB Flash Drive from the useless worms and viruses.</p><p>Thanks for the awesome post.</p> ]]></content:encoded> </item> <item><title>By: Alan</title><link>http://www.raymond.cc/blog/create-fake-dummy-file-on-usb-flash-drive-to-enable-write-protect-and-prevent-modification/#comment-470117</link> <dc:creator>Alan</dc:creator> <pubDate>Mon, 15 Mar 2010 18:06:15 +0000</pubDate> <guid
isPermaLink="false">http://www.raymond.cc/blog/?p=3464#comment-470117</guid> <description>There are still a few drives manufactured with write protection switches: The Imation Clip and Pivot (not Pivot Plus) drives, older Imation Swivel drives that may still be available, the PQI U339 series, and the Ritek/RiDATA Twister and Slider drives.I have a listing of drives with links to the manufacturers at fencepost.net/2010/03/usb-flash-drives-with-hardware-write-protection/ based on information from c&#039;t magazine, forum searches and too much reading of manufacturer spec sheets.</description> <content:encoded><![CDATA[<p>There are still a few drives manufactured with write protection switches: The Imation Clip and Pivot (not Pivot Plus) drives, older Imation Swivel drives that may still be available, the PQI U339 series, and the Ritek/RiDATA Twister and Slider drives.</p><p>I have a listing of drives with links to the manufacturers at fencepost.net/2010/03/usb-flash-drives-with-hardware-write-protection/ based on information from c&#8217;t magazine, forum searches and too much reading of manufacturer spec sheets.</p> ]]></content:encoded> </item> </channel> </rss>
