DWfile.write returning 0

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

  1. #1

    Default DWfile.write returning 0

    I'm trying to create a temp file for my extension, but it isn't working, here
    is the code I'm using.

    DWfile.write(dreamweaver.getConfigurationPath()+"T emp/myFolder/myFile.htm", "")

    What am I doing wrong??

    Thanks

    Clukey Guest

  2. Similar Questions and Discussions

    1. DWfile.copy dies after the 1023 file
      I have an extension that copies files from the Dreamweaver site folder to a staging folder using a recursive copy function. After copying 1023...
    2. DWfile.copy not working
      I have an extension that I am building and I need to copy a file automatically from the config folder to the users local site when they apply the...
    3. Compare current date with DWfile.getCreationDate/Obj
      Hey everyone! I have a new questions. I was curious if anyone already has a created function that will convert e current date into the hex format...
    4. Macintosh OS X Path Problems when using DWfile.exists
      Hello, When working with a MACINTOSH OS X and when I try to do either a DWfile.exists( dreamweaver.getConfigurationPath() ); DWfile.exists(...
    5. DWfile and Image Files
      I am trying to read in an image files using DWfile.read() so that I can post it to a server using a multi-part form for HTTP file upload. The...
  3. #2

    Default Re: DWfile.write returning 0

    Hey, I figured it out, I nedded to put a "/" before the next folder. So the code should be:

    DWfile.write(dreamweaver.getConfigurationPath()+"/Temp/myFolder/myFile.htm", "")
    Clukey 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