Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   Copying files from the server to the PC (http://www.velocityreviews.com/forums/t800705-copying-files-from-the-server-to-the-pc.html)

JimmySlam 02-20-2006 04:09 PM

Copying files from the server to the PC
 
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





All times are GMT. The time now is 05:37 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.