For Programmers: Free Programming Magazines  


Home > Archive > ASP > February 2006 > Copying files from the server to the PC









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Copying files from the server to the PC
JimmySlam

2006-02-20, 6:55 pm

Hi how do i copy a file from the server to the PC?

I have this code but it says that type mismatch 'CopyFile'


<%

Const ForWriting=2
strPath = Server.MapPath("datos.xml")
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set oFile = fso.GetFile(strPath)
Set tso = oFile.OpenAsTextStream(ForWriting)

sob=1
CopyFile "datos.xml", file://c:/datos.xml, sob
%>


Thanks



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com