Skip to main content
Known Participant
August 6, 2009
Question

Move files from one server to another

  • August 6, 2009
  • 1 reply
  • 772 views

<cfset spath = "\\ght4\clients\abc\new\256\">
<cfset dpath ="\\ffg\clients\def\new\kij">

<cffile action = "move" source = "#spath#" destination = "#dpath#">

It generating an error Is there a way to move files from server to another in coldfusion

    This topic has been closed for replies.

    1 reply

    Inspiring
    August 6, 2009

    First, you need permission on both servers, but let's assume you have that.

    Next, you need correct code and appears that you do not.  Your spath variable looks more like a directory than a file and cffile only works on files.

    Known Participant
    August 6, 2009

    How could I find out that I do have the this permissions which u r taking about?

    ilssac
    Inspiring
    August 6, 2009

    You talk to your network administrator(s) and ask them what permissions have been assigned to the user that the ColdFusion service|demeon is running as.

    P.S.  By default, on a windows machine, ColdFusion runs as a "localSystem" user, which usually has *no* permissions to other systems.