Solved

file copy one server to another server in asp

Posted on 2009-04-05
1
501 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
FileUp - Classic ASP 5 24
Writing lines of code from a form output in script within a results page 2 34
Html value of radio 14 44
window close link 7 32
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 informatio…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
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…

761 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