Extension to copy files to local folder

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default Extension to copy files to local folder

    Hi All,
    I'm really a newbie in extension making process and confused.

    I need to make an extension so that when it is executed, the files would be
    copied from $dreamweaver/Configuration/ (the folder to put the files when the
    extension is installed) to the local site folder (where we build the new
    site).
    Some questions regarding this:
    [num]1. Is this a possible thing to do? I won't need the user to input
    something in order to make this work, just click a menu on the Insert or
    Commands and all the files will be copied.[/num]
    [num]2. Another confusion is that, when I was trying to install the extension,
    it didn't display any error and dw says that the extension is installed. Yet,
    the menu that I created doesn't do anything when clicked, and the file doesn't
    exist on the folder I intended to be the destination in
    $dreamweaver/Configuration/. Any clue on this?[/num]

    I would appreciate any help, as it is getting really confusing to me. :)

    Regards,

    ndutzie Guest

  2. Similar Questions and Discussions

    1. Local copy of website files
      I set up a website for someone about a year ago and since then they have been administering the site using Contribute. I've never used Contribute so...
    2. Copy & rename entire folder structure
      I was wondering how to copy an entire folder structure with sub folders and files, then rename the main folder. I have used the cfdirectory to...
    3. Mapping networked shared folder to local folder
      Hello. I am setting-up a "cad server" (basically a shared folder located, \\cad\eoi\) for my draftspeople. The problem lies within the cad...
    4. Can I have local Shared Documents folder *NOT* shared on the Local Network
      I finally have my local network working well enough (Thanks Steve W.!). I think I have learned that "network connection" does not get you anything...
    5. Video from a local folder?
      the moviepath & "video/myvideo.mov" "Kingofchrome" <webforumsuser@macromedia.com> wrote in message news:be3hqg$nal$1@forums.macromedia.com......
  3. #2

    Default Re: Extension to copy files to local folder

    var ImageFolder = theForm.ImageFolder.value;
    ...
    if(ImageFolder != "") {
    var newURL1 =
    dreamweaver.getSiteRoot()+MM_findObj('ImageFolder' ).value+"*.gif";
    var fileURL1 = dreamweaver.getConfigurationPath()+"/Shared/***/image/*.gif";
    DWfile.copy(fileURL1, newURL1);
    }

    The *.gif is a picture and *** is a folder you can create the picture and the
    folder with mxi-code.
    ImageFolder is a Userinput.

    Sorry my English is not so good!

    SLext Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139