Solved

file copy one server to another server in asp

Posted on 2009-04-05
1
493 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now