HighDots Forums  

Possible Dumb Question - Copying Files and Maintaining the Links

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Possible Dumb Question - Copying Files and Maintaining the Links in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Robert Barnett
 
Posts: n/a

Default Possible Dumb Question - Copying Files and Maintaining the Links - 08-19-2004 , 04:59 PM






Hello,

I have a directory with four HTML files in it. I want to create a directory
in a sub-directory in another fold that will be one level deeper than these
4 files are currently in. I then want to copy these four files to this new
directory. Now I can do this in the file manager in Dreamweaver MX 2004, but
it doesn't maintain the links to the images and other files that are in
these 4 files. Is there any way to copy these files and have Dreamweaver
update the links in these files to adjust for the copied files new location?

I can duplicate these files and then drag and drop them, but Dreamweaver
adds "Copy of" junk to the file names and I don't like the idea of having to
rename them once I get them moved to their new location. I seems to me that
you should be able to copy the files and Dreamweaver maintain the links.

Thanks,

Robert

--
Grow Some Dope...Plant a Politician.



Reply With Quote
  #2  
Old   
Alan
 
Posts: n/a

Default Re: Possible Dumb Question - Copying Files and Maintaining theLinks - 08-19-2004 , 05:05 PM






For dreamweaver to maintain the links- you have to drag a file from where
it's links currently DO work, to some other folder location.

If you right-click Copy from one folder location, then right-click Paste
into another folder- dreamweaver makes a true copy- no adjustment of paths.
So the links/images will be broken (unless they are Site Root relative)

So- you have to make the Duplicate or Copy in their present folder location-
then drag these copies from the old to the new location, then rename them if
wanted/needed. You could rename them before moving them- but in your case i
think you want them to have the same filenames as the originals- so that's
not possible since you can't have two files with the same filenames in the
same folder. So move the copies then rename.

Quote:
I can duplicate these files and then drag and drop them, but Dreamweaver
adds "Copy of" junk to the file names and I don't like the idea of having to
rename them once I get them moved to their new location. I seems to me that
you should be able to copy the files and Dreamweaver maintain the links.


Reply With Quote
  #3  
Old   
darrel
 
Posts: n/a

Default Re: Possible Dumb Question - Copying Files and Maintaining the Links - 08-19-2004 , 05:13 PM




Quote:
I can duplicate these files and then drag and drop them, but Dreamweaver
adds "Copy of" junk to the file names and I don't like the idea of having
to
rename them once I get them moved to their new location. I seems to me
that
you should be able to copy the files and Dreamweaver maintain the links.
Many a duplicate directory as the same level as the source files. Copy those
files into there (they should retain the filenames and have the same
relation to linked files). Then MOVE these files to the new directory that
you had made.

That should work in most cases.

-Darrel




Reply With Quote
  #4  
Old   
Robert Barnett
 
Posts: n/a

Default Re: Possible Dumb Question - Copying Files and Maintaining the Links - 08-19-2004 , 05:21 PM



I thought you might be on to something, but this doesn't work. When you
duplicate the directory and Dreamweaver adds the "Copy of" to the directory
name/filename" Dreamweaver doesn't update the files links for this new
directory name. So when you drag and drop this duplicate to its new location
in the sub-folder below it current location the links update but the are
still wrong since they didn't update when the duplicate was made and the
filename/directory name changed.

Robert


"darrel" <notreal (AT) hotmail (DOT) com> wrote

Quote:
I can duplicate these files and then drag and drop them, but Dreamweaver
adds "Copy of" junk to the file names and I don't like the idea of
having
to
rename them once I get them moved to their new location. I seems to me
that
you should be able to copy the files and Dreamweaver maintain the links.

Many a duplicate directory as the same level as the source files. Copy
those
files into there (they should retain the filenames and have the same
relation to linked files). Then MOVE these files to the new directory that
you had made.

That should work in most cases.

-Darrel





Reply With Quote
  #5  
Old   
Robert Barnett
 
Posts: n/a

Default Re: Possible Dumb Question - Copying Files and Maintaining the Links - 08-19-2004 , 08:10 PM



Hello,

Well after some messing around I discoverd if you select the files you want
to copy and maintain the links on and then press and hold the Control key
while you drag them to their new location you get a copy of the files and
Dreamweaver asks you if you want to update the links to the copies you just
made. This leaves the original files alone and doesn't alter their links.

Robert



Reply With Quote
  #6  
Old   
darrel
 
Posts: n/a

Default Re: Possible Dumb Question - Copying Files and Maintaining the Links - 08-20-2004 , 03:49 PM



Quote:
I thought you might be on to something, but this doesn't work. When you
duplicate the directory and Dreamweaver adds the "Copy of" to the
directory
name/filename"
Don't duplicate the directly.

Make a new directory at the same level as the source directory. Then
duplicate the CONTENTS of the directory INTO the new DIRECTORY. Then MOVE
these files to the new location.

-Darrel




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.