Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old July 2nd, 2008, 05:13 PM
Familiar Sight
 
Join Date: Sep 2007
Posts: 209
Default 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\20080702.
The cause of this exception was: java.io.FileNotFoundException: C:\query.sql (The system cannot find the file specified).
[/code]

[code=text]
<cffile
action = "copy"
source = '#comp_link#'
destination = '#comp_path#'
attributes='normal'>
[/code]
Reply
  #2  
Old July 2nd, 2008, 07:13 PM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 12,593
Default

Quote:
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.
Reply
  #3  
Old July 2nd, 2008, 07:42 PM
Familiar Sight
 
Join Date: Sep 2007
Posts: 209
Default

Quote:
Originally Posted by acoder
Yes! You're looking to upload a file. See if this quick tutorial helps.
Yup that did the trick! Thanks
Reply
  #4  
Old July 2nd, 2008, 08:50 PM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 12,593
Default

No problem, you're welcome as always :)
Reply
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles