我想找个网络间的实时拷贝文件小软件

sidney5 2004-11-16 05:48:36
如:自动监测我的C:\temp,如果里面有新文件产生,就将它拷贝到\\XX.XXX.X.X\c$\temp里面(第二台PC上),请问有这样的软件吗,或者类似这样的软件。
本人开发能力有限,用ASP只能把自动监测的文件拷贝到自己的机器上,网络间拷贝就不行(应该是权限的问题),什么映射等都用过,希望各位大虾帮个忙.

下面是我asp文件:

<%@LANGUAGE="VBSCRIPT" CODEPAGE="CP_ACP"%><!--#include file="../cn.asp"--><%
Dim pDest
pDest = Server.MapPath("../Vox2003")
pSource = Server.MapPath("/Vox1")
//psource="G:\mailbox\6"
//psource="\\172.168.0.1\asp\vox\"
response.write psource

'Dim fso As New Scripting.FileSystemObject
Set fso = CreateObject("Scripting.FileSystemObject")
Dim Fi, Fo
If Not fso.FolderExists(pDest) Then fso.CreateFolder pDest
If Not fso.FolderExists(pSource) Then fso.CreateFolder pSource

%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>auto scanning</title>
</head>

<body>
<p> </p>
<p> </p>
<p> </p>
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center">
<p><font color="#FF0000" size="4"><strong>请打开此页面,不要关闭!定时刷新!!</strong></font></p>
<p>最后刷新时间:<%=now()%></p>
</div></td>
</tr>
</table>
<p> </p>
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>    流程:自动监察<%=pSource%>目录。发现有新文件,则将文件转移到<%=pDest%>目录!并入库处理!</td>
</tr>
</table>

<table width="400" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FF9900">
<%For Each Fi In fso.GetFolder(pSource).Files
cn.Execute "insert into 电台.dbo.[1_VoxInfo](VoxFile) values('" & Fi.Name & "')"
fso.MoveFile Fi.Path, pDest & "\" & Fi.Name%>
response.write Fi.Name
<tr>
<td><%'=pDest & "\" & fi.Name%></td>
</tr><%Next %>
</table>
<p> </p>
</body>
</html>
...全文
80 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
ap9906111 2004-11-23
  • 打赏
  • 举报
回复
帮忙顶
sidney5 2004-11-17
  • 打赏
  • 举报
回复
自己顶

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧