Home > windows xp > Why does Windows XP (during a rename operation) report file already exists when it doesn't?

# Why does Windows XP (during a rename operation) report file already exists when it doesn't?

December 24Hits:1

From the command-line:

E:\menu\html\tom\val\.svn\tmp\text-base>ver  Microsoft Windows [Version 5.2.3790]  E:\menu\html\tom\val\.svn\tmp\text-base>dir  Volume in drive E is DATA  Volume Serial Number is F047-F44B   Directory of E:\menu\html\tom\val\.svn\tmp\text-base  12/23/2010  04:36 PM    <DIR>          . 12/23/2010  04:36 PM    <DIR>          .. 12/23/2010  04:01 PM                 0 wtf.com3.csv.svn-base                1 File(s)              0 bytes                2 Dir(s)  170,780,262,400 bytes free  E:\menu\html\tom\val\.svn\tmp\text-base>rename wtf.com3.csv.svn-base com3.csv.svn-base A duplicate file name exists, or the file cannot be found.  E:\menu\html\tom\val\.svn\tmp\text-base>dir  Volume in drive E is DATA  Volume Serial Number is F047-F44B   Directory of E:\menu\html\tom\val\.svn\tmp\text-base  12/23/2010  04:36 PM    <DIR>          . 12/23/2010  04:36 PM    <DIR>          .. 12/23/2010  04:01 PM                 0 wtf.com3.csv.svn-base                1 File(s)              0 bytes                2 Dir(s)  170,753,064,960 bytes free  E:\menu\html\tom\val\.svn\tmp\text-base>  E:\menu\html\tom\val\.svn\tmp\text-base>dir /ah  Volume in drive E is DATA  Volume Serial Number is F047-F44B   Directory of E:\websvn_menu\html\tom\val\.svn\tmp\text-base  File Not Found 


I don't know what to do about this, as there is no other file in this directory. Why does Windows XP report that there is already a file here named com3.csv.svn-base when there is clearly no other file here?

UPDATE: This is happening on my work machine, WinXP 64-bit. But it also fails on my home machine, WinXP 32-bit. However, in linux, it works just fine. Maybe this is an NTFS filesystem bug?

Ding ding ding.

Windows and DOS have device names reserved as filenames that are present in every directory. COM3 is one of them. You're probably familiar with NUL, LPT1, CON (like COPY CON) etc. Your problem is that you're trying to rename it to COM3.anything.anything. Windows, which still has some DOS-era backwards compatabilities, will not allow you to name a file in a way to break that.

Wikipedia tells me that you should be able to use a long UNC like \\mycomputer\E\$\menu\html\tom\val\.svn\tmp\text-base\com3.csv.svn-base as your rename target.

Could there be a hidden file in the directory? Try "dir /ah" to show all hidden files. If there are no hidden files, run "chkdsk /f e:" to check for filesystem problems (this may require a reboot). If that doesn't fix the problem, you may have bad sectors o the hard drive. Run "chkdsk /r e:" to check for bad sectors.

## Related Articles

• ### Why does Windows XP (during a rename operation) report file already exists when it doesn't?December 24

From the command-line: E:\menu\html\tom\val\.svn\tmp\text-base>ver Microsoft Windows [Version 5.2.3790] E:\menu\html\tom\val\.svn\tmp\text-base>dir Volume in drive E is DATA Volume Serial Number is F047-F44B Directory of E:\menu\html\tom\val\.svn\tm

• ### Is it possible to hide Windows' Cut, Copy, Delete, Rename buttons on the context menu when I am working on an checked-out directory?December 28

I am using Tortoise client and get "paranoid" when I accidently delete/rename files or folders in a checked-out directory using Windows default Delete or Rename buttons as opposed to using Tortoise's that I should use. Is it possible to hide Win

• ### Is there a way to change what Windows XP considers to be a 'protected operating system file'?April 1

At work I'm using a windows box with local and network drives. One of drives I have mapped is my Linux home directory (We have separate windows and linux accounts and home directories here). When I view it from windows, all of the files and folders b

• ### Windows XP command prompt rename command for this task?April 28

Windows XP command prompt rename command for this task? Rename... file.mp3.0001.mp3 file.mp3.0002.mp3 file.mp3.0003.mp3 file.mp3.0004.mp3 to afile.mp3.0001.mp3 afile.mp3.0002.mp3 afile.mp3.0003.mp3 afile.mp3.0004.mp3 and then afile.mp3.0001.mp3 afile

• ### Installing Windows 8 as a guest operating systemAugust 3

At home I have Windows 7 installed on my PC and I have VMWare player installed with Linux Ubuntu as the guest operating system. I want to install Windows 8 as another guest operating system. My PC can handle this. How would I do this? Do I need to si

• ### Windows 7 allowed bulk rename of folders in search results but wont let me rename them backMay 29

So I did a search for a parent folder with several subfolders with subfolders within them. I searched for DRAWINGS and got several hundred results. I tried renaming the results to DRAWINS -(1) hoping they would rename with unique -(2), -(3), etc... s

• ### Windows Explorer won't rename folder (e.g. "New Folder" cannot be renamed) October 14

Windows Explorer refuses to rename folders. Specifically, this occurs when creating a New Folder either via Ctrl-Shift-N or via RightClick-New-Folder and then trying to rename it. No error messages pop up but the folder remains named New Folder. Also

• ### Window Server 2012 throttling incoming IPv6 network file sharing operationsAugust 26

Short version IPv4 download from server: fast IPv4 upload to server: fast IPv6 download from server: fast IPv6 upload to server: slow Full version I am copying files from a GBe desktop to a GBe server. The copy proceeds at a horrendously slow: 23 kB/

• ### Dual booting from Windows 7 hard disk and a VHD fileSeptember 21

I have Windows 7 Enterprise edition installed on my laptop on the real physical hard disk. Now I want to create a vhd partition on the c:\ root directory and be able to dual boot into my real machine or a vhd that also runs Windows 7. Is this possibl

• ### SQL Server Express on Windows 8 isn't locking MDF database filesMarch 26

Historically, if I go to rename a database that is currently being used by SQL Server, I get an exception. On this Windows 8 desktop I'm in.. my primary desktop.. I'm able to MOVE SQL Server database files to a different partition.. without getting a

• ### Renaming bunch of files, but only part of the titleOctober 17

I need to rename a bunch of files (about 167k), and only part of the title in each file. From: Aaaa.bb - 2 tag tag_tag 9tag Aaaa.bb - 125 tag_tag 9tag Aaaa.bb - 3567 tag 9tag To: Aaaa.bb - 000002 tag tag_tag 9tag Aaaa.bb - 000125 tag_tag 9tag Aaaa.bb

• ### Operating System FilesJuly 13

Consider the scenario of an admin wanting to perform a backup of operating system files. Question: Does the windir (i.e. "C:\Windows") contain only operating system files / information about OS? Can we simply replace it with previous backup? ---

• ### Rename lots of files in one clickJune 11

Is there any application that can rename lots of files which have the same name in them with different numbers. For example. I want to rename, File 01.avi and File 02.avi up to File 100.avi. Into 01.avi, 02.avi. How do I do that?In windows or ubuntu

• ### Error 1931. The Windows Installer service cannot update the system file C:\WINDOWS\system32\msxml6r.dllOctober 11

My uncle is trying to install the MindJet MindManager Viewer 7 but get's the following error message : MindJet MindManager Viewer 7 Installer Inform... Error 1931. The Windows Installer service cannot update the system file C:\WINDOWS\system32\msxml6

• ### How to rename and move files to new directoryFebruary 3

I would like to rename a file that is uploaded to another server from extension .txt to .txt_mvd and move to a different directory for archiving in a Windows batch mode. Can anyone help with what the script commands should be like? Thanks, Allen ----

• ### Windows 7 Sub-Folders hidden in "Program Files" directoryMarch 17

I have Google searched for an hour now and I am confounded. I am using InnoSetup to install a .NET Winforms application that creates directories and folders on the fly. (I have set the folder options to display hidden files, folders...) Although the

• ### Rename tons of filesOctober 23

How can I rename all the files with a pattern like this: thumb_f318d8a580ca5717d686a323b6c2ca0d.jpg0000777 thumb_f18d8aup90ca5717d686a323b6c2c5uh.jpg0000777 thumb_jessr8d8a580ca5717d68623etrtckks.jpg0000777 thumb_4hghd8a580ca5717d686a323b6c2ghjj.jpg0

• ### How can I rename a corrupt file without using CHKDSK?April 4

How can I rename a corrupt file without using CHKDSK? It's a remote PC and I am not allowed to reboot it. Is there a way to fix or rename the file without rebooting? --------------Solutions------------- I assume you mean the file name is corrupt. Two

• ### Can't rename folders or files on mobile devicesMay 22

Since Windows 8 is running on my notebook (clean install, no upgrade), I can't rename folders or files on mobile devices running Windows Mobile or CE and connected with ActiveSync (via USB) anymore (or even create new ones with a custom name). The ex

• ### Is there log which record the operation of files in linux July 12

This question already has an answer here: How do I log file system read/writes by filename in Linux? 5 answers Is there log which record the operation of files in linux. Just like, if some users rename or delete or add some files, can root user see t