Error when trying to copy a file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dmorand
    New Member
    • Sep 2007
    • 219

    Error when trying to copy a file

    I'm trying to copy a file which is located on my C drive over to a network path. I'm getting the error below when trying to perform the copy. The file C:\query.sql does exist on my C drive so I'm curious as to why it can't reference it. Is it looking at the web server's C drive instead??

    [code=text]
    An exception occurred when performing a file operation copy on files C:\query.sql and \\mydocs1\perf_ evals\12345\200 80702.
    The cause of this exception was: java.io.FileNot FoundException: C:\query.sql (The system cannot find the file specified).
    [/code]

    [code=text]
    <cffile
    action = "copy"
    source = '#comp_link#'
    destination = '#comp_path#'
    attributes='nor mal'>
    [/code]
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Originally posted by dmorand
    Is it looking at the web server's C drive instead?
    Yes! You're looking to upload a file. See if this quick tutorial helps.

    Comment

    • dmorand
      New Member
      • Sep 2007
      • 219

      #3
      Originally posted by acoder
      Yes! You're looking to upload a file. See if this quick tutorial helps.
      Yup that did the trick! Thanks

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        No problem, you're welcome as always :)

        Comment

        Working...