<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: It's not a device, it's a folder!</title>
	<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder/</link>
	<description>Comments on Ask MetaFilter post It's not a device, it's a folder!</description>
	<pubDate>Sat, 01 Nov 2008 21:42:34 -0800</pubDate>
	<lastBuildDate>Sat, 01 Nov 2008 21:42:34 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: It&apos;s not a device, it&apos;s a folder!</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder</link>	
		<description>How can I delete a folder in Windows that has a colon in the name? &lt;br /&gt;&lt;br /&gt; While copying my music library back to my Windows machine (from previously being on Linux), I brought over a folder whose name contains a colon. Windows doesn&apos;t allow colons in file or folder names, so I don&apos;t know how this happened, but it did.&lt;br&gt;
&lt;br&gt;
The problem is that I can&apos;t delete it. When I right-click and select delete or drag to the trash, Windows tells me &quot;Cannot delete file: Cannot read from the source file or disk&quot;. It thinks I&apos;m trying to specify a device, I think, because of the colon. In the Command Prompt I get the message &quot;The filename, directory name, or volume label syntax is incorrect.&quot;&lt;br&gt;
&lt;br&gt;
I can&apos;t rename the folder, either, or at least I don&apos;t know any other ways to do it than the ways that I&apos;ve tried. I&apos;ve tried wildcards in the Command Prompt.&lt;br&gt;
&lt;br&gt;
Is there some trick that I don&apos;t know here? Or is there a character code that I can substitute or an escape character that I can prepend to the colon character in the Command Prompt? I know how to do this stuff in bash - what about Windows?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2008:site.105779</guid>
		<pubDate>Sat, 01 Nov 2008 21:40:31 -0800</pubDate>
		<dc:creator>dammitjim</dc:creator>
		
			<category>windows</category>
		
			<category>migration</category>
		
			<category>foldername</category>
		
			<category>illegalcharacters</category>
		
			<category>resolved</category>
		
	</item> <item>
		<title>By: zsazsa</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527199</link>	
		<description>Well, if you want bash, you could install Cygwin and delete it in that.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527199</guid>
		<pubDate>Sat, 01 Nov 2008 21:42:34 -0800</pubDate>
		<dc:creator>zsazsa</dc:creator>
	</item><item>
		<title>By: Justus</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527203</link>	
		<description>You can also try &lt;a href=&quot;http://ccollomb.free.fr/unlocker/&quot;&gt;Unlocker&lt;/a&gt;, a free little download that works great.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527203</guid>
		<pubDate>Sat, 01 Nov 2008 21:53:34 -0800</pubDate>
		<dc:creator>Justus</dc:creator>
	</item><item>
		<title>By: jouke</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527206</link>	
		<description>Have you tried quoting the folder name from the command prompt?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527206</guid>
		<pubDate>Sat, 01 Nov 2008 21:56:52 -0800</pubDate>
		<dc:creator>jouke</dc:creator>
	</item><item>
		<title>By: zixyer</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527208</link>	
		<description>Try deleting it from the command line, substituting ? for the colon.&lt;br&gt;
&lt;br&gt;
&lt;code&gt;cd \where\the\file\is&lt;/code&gt;&lt;br&gt;
&lt;code&gt;del abc?def.dat&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
Alternatively, try deleting using its short file name. Type dir /x to get a listing of short file names.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527208</guid>
		<pubDate>Sat, 01 Nov 2008 22:02:34 -0800</pubDate>
		<dc:creator>zixyer</dc:creator>
	</item><item>
		<title>By: dammitjim</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527209</link>	
		<description>&lt;em&gt;Well, if you want bash, you could install Cygwin and delete it in that.&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
That is true. If I can&apos;t get this done easily, I may resort to that. I&apos;ve tried a couple of &quot;bash on windows&quot; exe&apos;s, but the PATH setup that they require is screwing me up.&lt;br&gt;
&lt;br&gt;
&lt;em&gt;Have you tried quoting the folder name from the command prompt?&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
Yeah, it does that automatically when you tab-autocomplete, which is a habit of mine from from bash.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527209</guid>
		<pubDate>Sat, 01 Nov 2008 22:03:18 -0800</pubDate>
		<dc:creator>dammitjim</dc:creator>
	</item><item>
		<title>By: Class Goat</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527211</link>	
		<description>You don&apos;t say so, but did you try right-clicking the directory from Explorer and either choosing &quot;rename&quot; or &quot;delete&quot;?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527211</guid>
		<pubDate>Sat, 01 Nov 2008 22:05:19 -0800</pubDate>
		<dc:creator>Class Goat</dc:creator>
	</item><item>
		<title>By: dammitjim</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527212</link>	
		<description>&lt;em&gt;Try deleting it from the command line, substituting ? for the colon.&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
Hmm. This didn&apos;t work, but I wonder if it has to do with the fact that the folder also has spaces in the name, and so needs to be quoted on the command line. I tried both del and rmdir.&lt;br&gt;
&lt;br&gt;
&lt;em&gt;Alternatively, try deleting using its short file name. Type dir /x to get a listing of short file names.&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
dir /x gave me the exact same results as dir. Does that mean that there&apos;s no short file name?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527212</guid>
		<pubDate>Sat, 01 Nov 2008 22:10:24 -0800</pubDate>
		<dc:creator>dammitjim</dc:creator>
	</item><item>
		<title>By: dammitjim</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527214</link>	
		<description>&lt;em&gt;You don&apos;t say so, but did you try right-clicking the directory from Explorer and either choosing &quot;rename&quot; or &quot;delete&quot;?&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
Yep, tried both of those. Same &quot;Cannot [rename/delete] file: Cannot read from the source file or disk&quot; message as mentioned above.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527214</guid>
		<pubDate>Sat, 01 Nov 2008 22:11:31 -0800</pubDate>
		<dc:creator>dammitjim</dc:creator>
	</item><item>
		<title>By: zixyer</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527215</link>	
		<description>I feel bad for completely failing to read the question.&lt;br&gt;
&lt;br&gt;
You can try a script like this. FileSystemObject might be use a different API than Explorer or rd. (save ending with .vbs and run it using cscript or just double-clicking)&lt;br&gt;
&lt;br&gt;
&lt;code&gt;Set fs = CreateObject(&quot;Scripting.FileSystemObject&quot;)&lt;/code&gt;&lt;br&gt;
&lt;code&gt;fs.DeleteFolder(&quot;C:\wherever\abc?def&quot;)&lt;/code&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527215</guid>
		<pubDate>Sat, 01 Nov 2008 22:13:09 -0800</pubDate>
		<dc:creator>zixyer</dc:creator>
	</item><item>
		<title>By: zixyer</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527217</link>	
		<description>dir /x should give you an extra column in the output with the short file name. If the folder has fewer than eight characters in its name, it probably won&apos;t have a short file name. Did you try using wildcards for the spaces as well when you deleted the file?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527217</guid>
		<pubDate>Sat, 01 Nov 2008 22:21:22 -0800</pubDate>
		<dc:creator>zixyer</dc:creator>
	</item><item>
		<title>By: dammitjim</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527219</link>	
		<description>@zixyer:&lt;br&gt;
For the VBScript suggestion, I get a runtime error that says &quot;Bad file name or number&quot; with the code 800A0034. If I change the path in the script, I get a different message about a bad path, so I think it&apos;s finding the right directory but just not being about to do the right thing.&lt;br&gt;
&lt;br&gt;
Regarding dir /x, i swear there&apos;s no appreciable difference in the results. dir /x gives the same results, but the column containing the filename strings is moved to the left like 12 columns or something in the terminal.&lt;br&gt;
&lt;br&gt;
I did try wildcards, but I wonder if I tried all the possible permutations. I tried no quotes, with asterisks for all the spaces and for the colon. I tried just the first few letters of the folder and then one asterisk. Should I try question marks also?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527219</guid>
		<pubDate>Sat, 01 Nov 2008 22:29:35 -0800</pubDate>
		<dc:creator>dammitjim</dc:creator>
	</item><item>
		<title>By: zixyer</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527233</link>	
		<description>Wild cards in DOS can be &lt;a href=&quot;http://blogs.msdn.com/oldnewthing/archive/2007/12/17/6785519.aspx&quot;&gt;strange&lt;/a&gt;. The theory is ? matches exactly one character and * matches zero or many characters, but it doesn&apos;t always work that way. Try replacing all spaces and the : with ? when you delete. Also, try scanning your disk for errors. You might actually have a filesystem issue.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527233</guid>
		<pubDate>Sat, 01 Nov 2008 22:49:12 -0800</pubDate>
		<dc:creator>zixyer</dc:creator>
	</item><item>
		<title>By: nikkorizz</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527267</link>	
		<description>Can you cut it and paste it on to a thumb drive? There, you can transport it back to the Linux system and rename it or you could delete it for good.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527267</guid>
		<pubDate>Sun, 02 Nov 2008 00:19:25 -0800</pubDate>
		<dc:creator>nikkorizz</dc:creator>
	</item><item>
		<title>By: flabdablet</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527279</link>	
		<description>Could you show us what &lt;code&gt;dir /x&lt;/code&gt; shows you?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527279</guid>
		<pubDate>Sun, 02 Nov 2008 00:58:09 -0800</pubDate>
		<dc:creator>flabdablet</dc:creator>
	</item><item>
		<title>By: randomstriker</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527282</link>	
		<description>Does this &lt;a href=&quot;http://www.purgeie.com/delinv/index.htm&quot;&gt;utility &lt;/a&gt;help?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527282</guid>
		<pubDate>Sun, 02 Nov 2008 01:13:39 -0800</pubDate>
		<dc:creator>randomstriker</dc:creator>
	</item><item>
		<title>By: randomstriker</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527283</link>	
		<description>You could also burn a Linux CD with NTFS read/write drivers, e.g. &lt;a href=&quot;http://trinityhome.org/Home/index.php?wpid=1&amp;front_id=12&quot;&gt;Trinity Rescue Kit&lt;/a&gt;, boot from it and try to delete the file that way.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527283</guid>
		<pubDate>Sun, 02 Nov 2008 01:17:22 -0800</pubDate>
		<dc:creator>randomstriker</dc:creator>
	</item><item>
		<title>By: flabdablet</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527284</link>	
		<description>After a bit of fooling about with ntfs-3g on my Ubuntu box, I&apos;ve found that ntfs-3g is quite capable of creating and using NTFS files with colons in their names.  I imagine this is how your mystery file got created in the first place - you probably used Linux to do the original copying.  Use Linux to rename or delete it as well.  Any modern live CD should work if you don&apos;t still have a working Linux on that box.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527284</guid>
		<pubDate>Sun, 02 Nov 2008 01:17:25 -0800</pubDate>
		<dc:creator>flabdablet</dc:creator>
	</item><item>
		<title>By: flabdablet</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527285</link>	
		<description>By the way, I suspect that the no-colon rule is buried deep enough in the guts of Windows that it won&apos;t matter what user interface you try.  Anything that does its job by making Windows system calls will likely barf on a filename containing a colon.&lt;br&gt;
&lt;br&gt;
CHKDSK might well spot the colon as a file system error and replace it, though.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527285</guid>
		<pubDate>Sun, 02 Nov 2008 01:23:20 -0800</pubDate>
		<dc:creator>flabdablet</dc:creator>
	</item><item>
		<title>By: Lanark</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527324</link>	
		<description>Try using the syntax&lt;br&gt;
&lt;br&gt;
RD \\.\C:\somedir\some:folder&lt;br&gt;
DEL \\.\C:\somedir\some:file&lt;br&gt;
&lt;br&gt;
For the long filename/spaces you will need to either use the 8.3 equivalent or surround the whole string &quot;with quotes&quot;&lt;br&gt;
&lt;br&gt;
The ? wildcard trick usually works for files, but RD does not support wildcards</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527324</guid>
		<pubDate>Sun, 02 Nov 2008 05:34:50 -0800</pubDate>
		<dc:creator>Lanark</dc:creator>
	</item><item>
		<title>By: odinsdream</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527338</link>	
		<description>Just so you know, installing Cygwin is actually very easy. I tend to install it on any machine which I&apos;ll be using for awhile, since things like this crop up from time to time, and Bash is light-years ahead of command.com.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527338</guid>
		<pubDate>Sun, 02 Nov 2008 06:28:23 -0800</pubDate>
		<dc:creator>odinsdream</dc:creator>
	</item><item>
		<title>By: ArgentCorvid</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527344</link>	
		<description>A colon is used as the specifier for &lt;a href=&quot;http://support.microsoft.com/kb/105763&quot;&gt;&quot;Alternate Data Streams&quot;&lt;/a&gt; on NTFS (kind of like the &lt;a href=&quot;http://en.wikipedia.org/wiki/Fork_%28filesystem%29&quot;&gt;Resource Fork&lt;/a&gt; from the old Mac days). This means that any attempt to go through the Windows API will likely fail, so I think your best bet is to use a linux recovery live CD, and rename it from there.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527344</guid>
		<pubDate>Sun, 02 Nov 2008 06:37:12 -0800</pubDate>
		<dc:creator>ArgentCorvid</dc:creator>
	</item><item>
		<title>By: kindall</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527400</link>	
		<description>Worse comes to worst, use Acronis True Image to back up everything but the file containing a colon, then reimage the drive from the backup. This worked to get rid of an undeletable file I had on my Web server once.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527400</guid>
		<pubDate>Sun, 02 Nov 2008 08:20:29 -0800</pubDate>
		<dc:creator>kindall</dc:creator>
	</item><item>
		<title>By: gjc</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527411</link>	
		<description>Supposing the folder is on c:\documents\media\ and the directory you want to delete is called &quot;music:funny&quot;, you can try this:&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Move everything out of media that you want to keep.  Move everything out of &quot;music:funny&quot; that you want to keep.&lt;br&gt;
&lt;br&gt;
Open a command line and navigate to c:\documents\media\&lt;br&gt;
&lt;br&gt;
cd \&lt;br&gt;
cd documents&lt;br&gt;
cd media&lt;br&gt;
&lt;br&gt;
rmdir m*&lt;br&gt;
&lt;br&gt;
This will remove all directories inside &quot;media&quot; that starts with &quot;m&quot;.  Should work.  (The reason is that the folder might not actually have a colon in the name, but some kind of %20d sort of thing that just *looks* like a colon when you view it.  Using the * wildcard lets the operating system figure out the real name and delete it.&lt;br&gt;
&lt;br&gt;
Or yes, boot with a linux live cd and use that.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527411</guid>
		<pubDate>Sun, 02 Nov 2008 08:42:26 -0800</pubDate>
		<dc:creator>gjc</dc:creator>
	</item><item>
		<title>By: dammitjim</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527475</link>	
		<description>Thanks everyone for your suggestions. &lt;br&gt;
&lt;br&gt;
@gjc: yeah, I tried every possible wildcard combination I could think of, and it didn&apos;t work. I think it really IS a colon in the folder name. I don&apos;t know why Windows allowed me to copy it over.&lt;br&gt;
&lt;br&gt;
@kindall: Nuke the site from orbit. Only way to be sure. I hope it doesn&apos;t come to that.&lt;br&gt;
&lt;br&gt;
I think ArgentCorvid has it. I&apos;ve downloaded an Ubuntu image and will be burning it when I have a chance tonight. Hopefully it will work - watch this space for updates!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527475</guid>
		<pubDate>Sun, 02 Nov 2008 10:13:13 -0800</pubDate>
		<dc:creator>dammitjim</dc:creator>
	</item><item>
		<title>By: gjc</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527708</link>	
		<description>Did you use del or rmdir?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527708</guid>
		<pubDate>Sun, 02 Nov 2008 16:19:19 -0800</pubDate>
		<dc:creator>gjc</dc:creator>
	</item><item>
		<title>By: niles</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1527769</link>	
		<description>what if you used the shortened DOS name? For example, if the folder is &quot;dammitjim:music&quot;, try &lt;code&gt;del dammit~1&lt;/code&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1527769</guid>
		<pubDate>Sun, 02 Nov 2008 17:21:10 -0800</pubDate>
		<dc:creator>niles</dc:creator>
	</item><item>
		<title>By: Lanark</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1528528</link>	
		<description>Knowledge base article &lt;a href=&quot;http://support.microsoft.com/?id=320081&quot;&gt;Q320081&lt;/a&gt; explains how to do this&lt;br&gt;
see the sections:&lt;br&gt;
Cause 5: The file name includes a reserved name in the Win32 name space&lt;br&gt;
Cause 6: The file name includes an invalid name in the Win32 name space</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1528528</guid>
		<pubDate>Mon, 03 Nov 2008 11:39:41 -0800</pubDate>
		<dc:creator>Lanark</dc:creator>
	</item><item>
		<title>By: dammitjim</title>
		<link>http://ask.metafilter.com/105779/Its-not-a-device-its-a-folder#1531190</link>	
		<description>Okay, OP back again finally. I tried the Command Line Jedi tricks that Lanark linked to in the Knowledge base article, but they didn&apos;t work for me either. I probably could have tried a zillion permutations of the command examples given there (and &lt;a href=&quot;http://support.microsoft.com/kb/315226/&quot;&gt;here&lt;/a&gt;), but since I&apos;d already downloaded an Ubuntu image, I bailed on that.&lt;br&gt;
&lt;br&gt;
Ubuntu, of course, worked. Boot the LiveCD, open the containing folder, change folder name. Reboot into Windows, and folder deletes easily.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.105779-1531190</guid>
		<pubDate>Thu, 06 Nov 2008 04:55:50 -0800</pubDate>
		<dc:creator>dammitjim</dc:creator>
	</item>
	</channel>
</rss>
