File.CopyTo across servers

Ask a Question related to Macromedia Flash Flashcom, Design and Development.

  1. #1

    Default File.CopyTo across servers

    I need to copy recorded streams from server to server. I planned on using the
    File.CopyTo function, but I have two questions.

    First, the PDF documentation of the server side actionscript states that "If
    .... the destination file doesn?t exist, the operation
    fails..." (pg 70.) Do I first need to create the destination file by opening
    it in "create" mode before using the CopyTo function?

    Second, I am assuming that I should be able to use the file naming convention
    "//server/app/dir/filename" for the destination file to copy the file from
    server A to server B using the mapped locations. But something's nagging at me
    telling me this won't work. In the documentation the naming instructions kind
    of imply that file copies only work within a single server. The example
    doesn't show either an app name or server. I want to do this:

    Code running on source server.
    var fileToCopy = new File("/dir/filename");
    fileToCopy .CopyTo("//destserver/app/dir/filename")


    If that's no good, can I copy the file from the source server to the
    destination server from the destination app? For instance:

    Code running on destination server.
    var fileToCopy = new File("//srcserver/app/dir/filename");
    fileToCopy .CopyTo("/dir/filename")


    If someone could clarify this for me I'd appreciate it.

    Thanks.

    Neeeol Guest

  2. Similar Questions and Discussions

    1. Frontend Web Servers connect to Coldfusion Servers
      I need some help getting a front end web server cluster (iis) talking with the backend colfusion app cluster (j2ee install). Do I have to install...
    2. file upload and DTS between servers
      Hello. I have two servers (A and B) in our environment. 'A' hosts sites and runs CF. 'B' acts as a dedicated SQL Server box. I'm trying to...
    3. Central file repository for clustered servers
      We are upgrading from CF 5 to MX 6.1. We have the requirement of building in server redundancy. We have elected to go with Windows 2003 because ot...
    4. DNS Servers
      We have a large network with Active Directory at present we have only one DNS server at present and i am thinking of configuring a secondary DNS...
    5. DirectoryEntry and CopyTo function
      Hi I am struggling to make a Web site/Web Directory copy work. I am using the System.DirectoryServices to connect to my localhost machine. ...
  3. #2

    Default Re: File.CopyTo across servers

    Never mind.. I just saw another post on a similar topic and it's pretty clear i can't do this.
    Neeeol 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