locked
How can you convert files, folders and links to lowercase in Expression Web? RRS feed

  • Question

  • Hello;

    Is there any way to batch convert all files, folders and links to lowercase letters?  I have a bunch of old files that have capitalized and lowercase letters and it's causing a few problems when people try to link to my pages.  Any help would be appreciated.

    Thanks

    Paul

    Tuesday, August 7, 2012 11:56 PM

All replies

  • Paul,

    I don't understand what you mean by it causing problems: if the name is correct, the link will work.

    As for converting, it's not trivial.  In Windows, changing case does not mean anything different, it's the same file name, and EW will not know the file names have changed.

    The way to do it is to change the name to something completely different, then change it back to the name you want, in the case you want, and let EW update all links both times.


    • Edited by KathyW2 Wednesday, August 8, 2012 1:44 AM
    Wednesday, August 8, 2012 1:43 AM
  • I don't think there is a batch process to do this unless you use some external scripts to process text files.

    Another thing you could do is to load the files in Word and change the case of selected text and then use "save as" to maintain the text format of the file for html purposes.

    There is unfortunately no easy way if you have 1000s of files to convert.

    Good luck keep us posted.


    Website: http://mytaxsite.co.uk Website: http://html-css.co.uk Forums: http://mytaxsite.boardhost.com Email: http://mytaxsite.co.uk/contact-us

    Wednesday, August 8, 2012 1:47 AM
  • Where not having everything in lowercase is causing problems is for example I'm tweeting a pic of a day and a link to the trip report on my site where that picture came from.  When I post it to twitter the software makes the link all lowercase and when people click on it they go to a 404 page instead of the trip report. 

    Thursday, August 9, 2012 1:39 AM
  • As Kathy has already explained, there is no way to bulk convert case in EW. Given Windows' case insensitivity, it sounds like you face a manual endeavor, as described by Kathy. Rename the images to something different in EW (so it can track the changes and update all references), then name them back to the original name, using all lower case. EW will follow the changes and make sure all local references are maintained.

    In the future, I suggest that you use lower case when naming your images. As for the current situation, sorry, but AFAIK, there is no automated way to address the issue. At least, not in EW.

    cheers,
    scott


    Please remember to "Mark as Answer" the responses that resolved your issue. It is common courtesy to recognize those who have helped you, and it also makes it easier for visitors to find the resolution later.

    Thursday, August 9, 2012 2:19 AM