Skip navigation
Frunkkkkkkis
Currently Being Moderated

Removing spaces and %20's in filenames

Nov 30, 2007 10:52 AM

Greetings. My boss changed hosting to godaddy while I was away on a trip, and there are many many files that have spaces in them (fortunately not my design) and whichever program he used changed all the code to have %20's in the links.

I wish to remove the spaces in the filenames and fix the links, is there an automated process in DW 8? Is there a better way to do this?
No PHP, he wouldn't listen to me and got a Windows server anyway.


Thanks

Jason
 
Replies
  • Currently Being Moderated
    Nov 30, 2007 11:21 AM   in reply to Frunkkkkkkis

    "Frunkkkkkkis" <webforumsuser@macromedia.com> wrote in message
    news:fipm61$1eh$1@forums.macromedia.com...
    > Greetings. My boss changed hosting to godaddy while I was away on a trip,
    > and
    > there are many many files that have spaces in them (fortunately not my
    > design)
    > and whichever program he used changed all the code to have %20's in the
    > links.
    >
    > I wish to remove the spaces in the filenames and fix the links, is there
    > an
    > automated process in DW 8? Is there a better way to do this?
    > No PHP, he wouldn't listen to me and got a Windows server anyway.

    well, if you have the site defined in DW, just select the files in question
    in your Files panel and rename them. If the site's defined properly, it
    should scan for instances of the old filename and update them with the new
    filename.


     
    |
    Mark as:
  • Currently Being Moderated
    Nov 30, 2007 11:28 AM   in reply to Frunkkkkkkis
    I'd use global find and replace to take care of hyperlinks and then
    use a file renaming utility like 1-4a rename
    http://www.1-4a.com/rename/download.htm
    to remove spaces from file names (images, scripts etc)

    "Frunkkkkkkis" <webforumsuser@macromedia.com> wrote in message
    news:fipm61$1eh$1@forums.macromedia.com...
    > Greetings. My boss changed hosting to godaddy while I was away on a trip,
    > and
    > there are many many files that have spaces in them (fortunately not my
    > design)
    > and whichever program he used changed all the code to have %20's in the
    > links.
    >
    > I wish to remove the spaces in the filenames and fix the links, is there
    > an
    > automated process in DW 8? Is there a better way to do this?
    > No PHP, he wouldn't listen to me and got a Windows server anyway.
    >
    >
    > Thanks
    >
    > Jason
    >


     
    |
    Mark as:
  • Currently Being Moderated
    Dec 1, 2007 6:31 AM   in reply to Frunkkkkkkis
    This is normal. Spaces are not recommended for use in file/pathnames for
    the web, and so servers will replace them with the server-encoded ASCII
    value for space, "%20".

    The other suggestions are correct, though - get rid of them, and hurry!

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs, Tutorials & Resources
    ==================


    "Frunkkkkkkis" <webforumsuser@macromedia.com> wrote in message
    news:fipm61$1eh$1@forums.macromedia.com...
    > Greetings. My boss changed hosting to godaddy while I was away on a trip,
    > and
    > there are many many files that have spaces in them (fortunately not my
    > design)
    > and whichever program he used changed all the code to have %20's in the
    > links.
    >
    > I wish to remove the spaces in the filenames and fix the links, is there
    > an
    > automated process in DW 8? Is there a better way to do this?
    > No PHP, he wouldn't listen to me and got a Windows server anyway.
    >
    >
    > Thanks
    >
    > Jason
    >

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 1, 2007 6:39 AM   in reply to Frunkkkkkkis
    if there aren't too many- rename the files in dw's Files Panel.

    if there are a lot, consider HTML Rename from here
    http://www.xlanguage.com/products/rename.htm

    note- that product hasn't been updated in many years. It has a 30 day trial.

    It will rename files to whatever scheme you pick and fix a href links to
    those files. It will not touch file references in .swf or javascript. (so it
    may break image rollovers for instance)

    make a copy of the site folder first for backup

    --
    Alan
    Adobe Community Expert, dreamweaver

    http://www.adobe.com/communities/experts/



     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)