Solved

ASP to copy files over network

Posted on 2004-10-19
1
750 Views
Last Modified: 2009-12-16
Can I copy files over a in an internal network using asp ..I have tried putting different paths it doesnt work.

IF I am located on a machine called Zion c:\ftpfiles and i have to move it on Matrix D:\myfiles ...can i do it

please let me know
0
Comment
Question by:rohanbairat3
[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 4

Accepted Solution

by:
BChan earned 30 total points
ID: 12353947
There should be a UNC path typically, a machine such named zion has a UNC of \\Zion  and  matrix will be \\Matrix
assuming your runing the webserver on zion
For this to work the IUSER must have the appropiate rights which may not be possible if IUSR is a local user. The user needs right to the destination file and permission to use the share.

To see if this script will work, put it into a vbs file and runn it as your user (change Server.CreateObject to CreateObject). If it works, for you, then will need to set the IUSR appropietly.

Dim FileToCopy,TargetLOC
FileToCopy="C:\ftpfiles\filename.txt"
TargetLOC="\\Zion\someShare\another.txt"
Set FileSys = Server.CreateObject("Scripting.FileSystemObject")
set mFile= FileSys.GetFile (FileToCopy)
mFile.Copy(TargetLOC)
Set FileSys = Nothing
set mFile= Nothing
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
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/…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

689 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