Solved

file copy one server to another server in asp

Posted on 2009-04-05
1
498 Views
Last Modified: 2012-05-06
Hi i have application on asp
i want to copy file from webserver to dbserver
xxx-oo is my db server


any help would be very much appreciated
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
fs.CopyFile "D:\abc\japan\xxx\"&rsTemp.fields("filename")&"","\\xxx-oo\img\"
 
set fs = nothing

Open in new window

0
Comment
Question by:saloj
1 Comment
 
LVL 17

Accepted Solution

by:
NicksonKoh earned 500 total points
ID: 24074995
Hi,

The code is good. I believe the problem lies with the security. How to overcome this depends on the IIS authentication you use.

The below should explain clearly.
http://databases.aspfaq.com/database/why-can-t-i-access-a-database-or-text-file-on-another-server.html
http://support.microsoft.com/default.aspx/kb/197964
http://support.microsoft.com/default.aspx/kb/308150

cheers,
Nickson
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question