Writing to Configuration Folder

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

  1. #1

    Default Writing to Configuration Folder

    I use the DWfile.write function to create files in various locations on my hard
    drive. I want to use the function to create a settings file that will be stored
    in the Dreamweaver Configuration folder that contains the extensions I am
    using. This will let the user change default values for the extensions, etc.
    Whenever I specify the Dreamweaver configuration folder as the desination in
    which to write the file, the function refuses to write the file. It doesn't
    return an error, but the file isn't created. The function works fine with the
    following parameters:

    DWfile.write("file:///C|/Program Files/Macromedia/Dreamweaver MX 2004/" +
    "testfile.xml", str)

    But when the destination directory is /Configuration or any directory inside
    /Configuration, the function doesn't work. For example, the following doesn't
    work (and yes, the folder name is correct):

    DWfile.write("file:///C|/Program Files/Macromedia/Dreamweaver MX
    2004/Configuration/" + "testfile.xml", str)

    It seems that Macromedia has disabled writing to the Configuration folder for
    security reasons. Can anyone confirm this or suggest a way around the problem?

    RobKendall Guest

  2. Similar Questions and Discussions

    1. Security --> Limit Writing On A Folder For Certain Users
      Is there a way to limit the write permission for certain users... Lets say Jonny can only write a 100mb per session on folder "A" Or Johnny can...
    2. Intercept the auto-refresh of a folder in HTML folder template
      Can anyone please send me the code to intercept the auto-refresh of a web page or folder (controlled by HTML folder template), or tell me where can...
    3. Setting writing permissions to a folder.
      At ASP.Net application I have a folder which contains the files, being updated by the users. The application deployed by Web Setup project. The...
    4. Writing an ASP file to pickup folder for SMTP
      Forgive me for asking this here. I know it is a stretch topic-wise, but there is only one SMTP group and very little in the way of anyone...
    5. configuration folder
      there arr times when i like to uninstall and reinstall dream mx but am horrified at installing the extensions etcetc again & again is it right...
  3. #2

    Default Re: Writing to Configuration Folder

    This TechNote explains how the DW Configuration folder is now handled on
    multiuser systems:

    [url]http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16420[/url]

    HTH,
    Randy


    > I use the DWfile.write function to create files in various locations on my hard
    > drive. I want to use the function to create a settings file that will be stored
    > in the Dreamweaver Configuration folder that contains the extensions I am
    > using. This will let the user change default values for the extensions, etc.
    > Whenever I specify the Dreamweaver configuration folder as the desination in
    > which to write the file, the function refuses to write the file. It doesn't
    > return an error, but the file isn't created. The function works fine with the
    > following parameters:
    >
    > DWfile.write("file:///C|/Program Files/Macromedia/Dreamweaver MX 2004/" +
    > "testfile.xml", str)
    >
    > But when the destination directory is /Configuration or any directory inside
    > /Configuration, the function doesn't work. For example, the following doesn't
    > work (and yes, the folder name is correct):
    >
    > DWfile.write("file:///C|/Program Files/Macromedia/Dreamweaver MX
    > 2004/Configuration/" + "testfile.xml", str)
    >
    > It seems that Macromedia has disabled writing to the Configuration folder for
    > security reasons. Can anyone confirm this or suggest a way around the problem?
    >
    Randy Edmunds Guest

  4. #3

    Default Re: Writing to Configuration Folder

    Normally the way you would do this is to have the file alreayd created and
    stored in the configuration folder. Then, when the user applies the extension,
    the file is copied to their root directory, normally in an
    includes/extensionName folder.

    Also, make sure you are veiwing/writing to the correct Configuration folder.
    There is a configuration folder that is hidden. Try going to C:/Documents and
    Settings/User Folder/Application Data/Macromedia/Dreamweaver 8/Configuration.

    envision3d 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