Skip to main content
nikos101
Inspiring
September 13, 2011
Answered

network alias in write statements

  • September 13, 2011
  • 1 reply
  • 1303 views

will this work

<cfset filename = "\\mule\ppc_margin\export\#DateFormat(now(), "yyyymmdd")&'-'&TimeFormat(now(), "HHmmss")#.xml">

<cfdump var="#filename#">
<cffile action='Write' file="#filename#" output='#data.xmlData[1]#'>

I keep getting acces denied

http://www.elyricsworld.com/don%27t_you_want_my_love_lyrics_nicole.html

    This topic has been closed for replies.
    Correct answer Adam Cameron.

    ah ok,do you know how to give permission to CF9 to write  on separate servers, Im not expert in windows folders permissions

    btw is it ok to alias in filenames instead of mappings like c:   ext?

    http://lmgtfy.com/?q=setting+directory+permissions+on+windows

    And, yeah, using a UNC is fine.

    --

    Adam

    1 reply

    Inspiring
    September 13, 2011

    Does the account CF is using have permissions to that resource?  By default, it won't have.

    --

    Adam

    nikos101
    nikos101Author
    Inspiring
    September 14, 2011

    ah ok,do you know how to give permission to CF9 to write  on separate servers, Im not expert in windows folders permissions

    btw is it ok to alias in filenames instead of mappings like c:   ext?

    Adam Cameron.Correct answer
    Inspiring
    September 14, 2011

    ah ok,do you know how to give permission to CF9 to write  on separate servers, Im not expert in windows folders permissions

    btw is it ok to alias in filenames instead of mappings like c:   ext?

    http://lmgtfy.com/?q=setting+directory+permissions+on+windows

    And, yeah, using a UNC is fine.

    --

    Adam