Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ASP to copy files over network

Posted on 2004-10-19
1
Medium Priority
?
752 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 90 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

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…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

705 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