Skip to main content
January 16, 2009
Question

get Local Files on Remote server

  • January 16, 2009
  • 1 reply
  • 214 views
double post sorry please delete.

Andrew
    This topic is closed to new replies. Start a new post to keep the conversation going.

    1 reply

    Inspiring
    January 16, 2009
    TurboNut wrote:
    > Hello,
    >
    > We have a project where each computer in our office will have different files
    > in a folder on their local computer named C:\Scanned. We would like to keep up
    > with what is in each directory and put it in the database on the remote server.
    > We have it all working on a single local machine but on the server we cannot
    > access a folder on the connecting pc.

    Thank goodness. Just imagine what could happen if any website you
    visited could just start snooping around the file system of your local,
    client PC. Scary stuff that.

    > We also don't want to install coldfusion
    > on every one of the machines just to access the local directory for each of
    > them.
    >
    > Is there a way to use cfdirectory to view a local directory on the persons pc
    > but not on the server?
    >

    *IF* all the client PC's are on a well defined local|wide area network.
    And you want to create a domain user that can read all the file
    systems on all these computers. Then ColdFusion can be configured to
    run under that user. It would then have access to the desire directories.

    You would use UNC paths in the <cfdirectory...> tag, which means you
    will have to know the machine names of all these PCs and it would look
    like:

    <cfdirectory directory="\\{machineName}\c$\Scanned\"...>

    But this is really not the job for a Web Application Server.