Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    Dec 2009
    Location
    Los Angeles
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Removing special characters from Windows filenames

    Does anyone have a batch file or other *simple* way to remove special characters from Windows filenames? I have many files with "AT&T" in the filename, which Windows allows but our version of SharePoint does not. Thanks for any help.

  2. #2
    3 Star Lounger jockmullin's Avatar
    Join Date
    Dec 2009
    Location
    St-Eustache,QC,Canada
    Posts
    239
    Thanks
    10
    Thanked 21 Times in 20 Posts
    As a test, copy a few of those files into a temporary folder.
    Open a CMD window, navigate to that folder and type: rename *"AT&T"*.* *BELL*.*
    That should change the AT&T substring in the filename to BELL. Of course you can use something other than BELL, but whatever you use should be 4 chars in length.
    Do a dir /p and make sure the results are what you expect.

    If so then do the same thing in each of the folders that contain such files. This could be done in a batch file if you have more than a few.

    Obviously everything should be backed up first; Murphy is lurking.

    Jock

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •