将文件从服务器复制到PC [英] Copying files from the server to the PC

查看:76
本文介绍了将文件从服务器复制到PC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您如何将文件从服务器复制到PC?

Const ForWriting = 2

strPath = Server.MapPath(" datos.xml")

设置fso = Server.CreateObject(" Scripting.FileSystemObject")

设置oFile = fso.GetFile(strPath)

设置tso = oFile.OpenAsTextStream(ForWriting)

sob = 1

CopyFile" datos.xml",file:// c:/datos.xml,sob

Hi how do i copy a file from the server to the PC?
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

推荐答案



JimmySlam写道:

JimmySlam wrote:
您好如何从服务器复制文件到PC?

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

sob = 1
CopyFile" datos.xml",file :// c:/datos.xml,sob
Hi how do i copy a file from the server to the PC?
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



基本文件副本:


<%

dim fso

set fso = CreateObject(" Scripting.FileSystemObject")

if fso.FileExists(" c:\ sourcefolder \ anyfile.html")然后

fso.CopyFile" c:\sourcefolder \anyfile.html"," c:\destfolder \"

结束如果

%>


但是,你需要说出服务器与PC相关的位置你需要b $ b b写信给。他们在同一个网络上吗?或者你是否建议

执行一些动作,将文件从网络服务器复制到

访客PC?


/ P.


Basic file copy:

<%
dim fso
set fso=CreateObject("Scripting.FileSystemObject")
If fso.FileExists("c:\sourcefolder\anyfile.html") Then
fso.CopyFile "c:\sourcefolder\anyfile.html", "c:\destfolder\"
End If
%>

However, you need to say where the server is in relation to the PC you
want to write to. Are they on the same network? Or do you propose to
perform some action that will copy a file from a web server to a
visitors PC?

/P.




" Paxton" < PA ******* @ hotmail.com> escribióenel mensaje

news:11 ********************* @ o13g2000cwo.googlegro ups.com ...

"Paxton" <pa*******@hotmail.com> escribió en el mensaje
news:11*********************@o13g2000cwo.googlegro ups.com...

是的问题是我在互联网上使用主机。所以我不知道

路径,我不知道如何拨打本地计算机上的驱动器C.


JimmySlam写道:
yeah the problem is I am using a host on the internet. So I dont know the
path and i dont know how to call to the drive C on the local computer.

JimmySlam wrote:
我如何将文件从服务器复制到PC?

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

sob = 1
CopyFile" datos.xml",file:// c:/datos.xml,sob
Hi how do i copy a file from the server to the PC?
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



基本文件副本:

< ;%
dim fso
设置fso = CreateObject(" Scripting.FileSystemObject")
如果fso.FileExists(" c:\sourcefolder\anyfile.html")那么
fso.CopyFile" c:\sourcefolder\anyfile.html"," c:\destfolder \"
结束如果
%>
但是,您需要说出服务器与其相关的位置PC你想写信给。他们在同一个网络上吗?或者您是否建议执行一些将文件从Web服务器复制到访问者PC的操作?

/ P。


Basic file copy:

<%
dim fso
set fso=CreateObject("Scripting.FileSystemObject")
If fso.FileExists("c:\sourcefolder\anyfile.html") Then
fso.CopyFile "c:\sourcefolder\anyfile.html", "c:\destfolder\"
End If
%>

However, you need to say where the server is in relation to the PC you
want to write to. Are they on the same network? Or do you propose to
perform some action that will copy a file from a web server to a
visitors PC?

/P.



JimmySlam写道:
JimmySlam wrote:
是的问题是我在互联网上使用主机。
所以我不知道路径,我不知道如何打电话给本地计算机上的驱动器C.
yeah the problem is I am using a host on the internet.
So I dont know the path and i dont know how to call to
the drive C on the local computer.



http://aspfaq.com/show.asp?id=2161


想要在没有用户互动的情况下进行此操作?强硬。这是违反安全规定的。


-

戴夫安德森


未经请求的商业电子邮件将在费用为



http://aspfaq.com/show.asp?id=2161

Want to do it without user interaction? Tough. It''s a security violation.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of


这篇关于将文件从服务器复制到PC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆