Cannot Change Filename (Source and Destination filenames are the same)

Page 1 of 2 12 LastLast

  1. Posts : 513
    Windows 7 Ultimate 64-bit
       #1

    Cannot Change Filename (Source and Destination filenames are the same)


    Let's say " 01 - come.aaa" (A space at the beginning) is the file name.
    I am trying to change it to "01 - come.aaa"(without the space at the beginning).
    I am coming up with this error: "Source and destination file names are the same".

    1) Is this fixable? How?

    2) How can I find all files on my computer (and external drives) with a space at the beginning in the filename (and of course how can I change them with this error coming up)?

    3) Is it a problem to have a space at the beginning in the filename (These files will be used in Mac and Linux too) ?

    Thanks.
      My Computer


  2. Posts : 24,479
    Windows 7 Ultimate X64 SP1
       #2

    A work around might be to:
    1.copy the file to another location and rename it there.
    2.Move the file renamed to the original location and delete the original.
    3. OR rename it something similar but different. Such as your generic example, change it to, say "01-come.aaa"...no spaces.
    I have no answer to find files with a space in the beginning of the name. curious, where do those come from?
      My Computer


  3. Posts : 5,056
    Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
       #3

    AFAIK, win7 doesnt allow creating files and folders with leading spaces in their names. So how did you create these files or are they imported from another OS?

    Generally speaking, spaces in filenames are a bad idea. They are troublesome to use in the command line and in scripts. Certain file- and image- hosting websites remove or replace spaces. Certain tools dont work with spaces in filenames. And filenames get unnecessary longer.
      My Computer


  4. Posts : 24,479
    Windows 7 Ultimate X64 SP1
       #4

    Confused me too Bill2
      My Computer


  5. Posts : 513
    Windows 7 Ultimate 64-bit
    Thread Starter
       #5

    They have been created by Microsoft SyncToy after a syncronization. (Unless the filenames have been changed before because of some security issue as mentioned in the other thread).
    I wish I could take that syncronization back (undo) because right now I don't know all the files and folders affected).
      My Computer


  6. Posts : 513
    Windows 7 Ultimate 64-bit
    Thread Starter
       #6

    I was able to change the files with a program called Better File Rename.
    Back to my question, why wasn't I able to do this from Windows Explorer?
      My Computer


  7. Posts : 5,056
    Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
       #7

    Windows explorer sees a filename with leading spaces SAME as a filename without leading spaces. Try creating a test file/folder with a leading space, the spaces are automatically removed.
      My Computer


  8. Posts : 513
    Windows 7 Ultimate 64-bit
    Thread Starter
       #8

    Thanks for your reply.
    Yes, I know that; that is why I was surprised to have double file names in Windows Explorer.
      My Computer


  9. Posts : 24,479
    Windows 7 Ultimate X64 SP1
       #9

    Explorer also will see files named AbCdE and aBcDe as being the same.
    If the SynchToy is creating files with leading space file names quit using it and try another.
      My Computer


  10. Posts : 1,326
    Windows 7 Ultimate RTM (Technet)
       #10

    SyncToy didn't do it...I've used it for years without a hint of any behavior like that.
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:54.
Find Us