通过使用FTPD IIS 7.5的计划任务+批处理脚本问题使用Windows ftp客户端FTP文件 [英] FTPing files using windows ftp client via scheduled task + batch script issue using FTPD IIS 7.5

查看:88
本文介绍了通过使用FTPD IIS 7.5的计划任务+批处理脚本问题使用Windows ftp客户端FTP文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,不确定这是否是正确的论坛,但不仅仅是看到一般的Windows论坛。我们有一个非常直接的批处理脚本,曾经在2003环境中工作,没有任何问题。我们最近在最近的
3个月内更换了这些服务器,并意识到FTPing过程存在问题。第一个文件是mput很好,但部分或全部进行中的文件大小为0kb(有时甚至第一个文件是0kb)。它是一个负载均衡的Web服务器,有2个节点。我们有
DFS用于将代码复制到我禁用的第二个节点,以确保这不是问题。我已经从SEP实时扫描中排除了源路径和目标路径中的目录,因此该文件未被使用。 FTP源是一个Windows 2008 R2,
和FTP目标是Windows 2008 R2利用IIS 7.5中的FTPD。我已经在这2天了,绝对没有运气,所以非常感谢任何帮助。脚本可以在下面找到:
$


@echo      

:开始



将PD文件回放到NOC

D:

cd D:\inetpub \uploads

if NOT EXIST *。* GOTO SkipFTP

ftp -s:D:\inetpub \ftppdProgram\PDtoNOC22

cd d:\inetpub \uploads

echo y | del *。*



PDtoNOC22文本文件的内容:

To start off, not sure if this was the right forum but did not just see an overall general windows forum. We have a very straight forward batch script that used to work in a 2003 environment with no issues. we recently replaced those servers in the last 3 months and realized there is an issue with the FTPing process. The first file that is mput is fine, but some or all of the proceeding files are 0kb in size (and occasionally even the first file is 0kb). it is a load balanced web server with 2 nodes. we have DFS being utilized to replicate code to the 2nd node that I disabled to make sure that is not an issue. I have excluded the directories from both source and destination paths from SEP live scanning so the file is not in use. FTP source is a windows 2008 R2, and the FTP destination is a windows 2008 R2 leveraging the FTPD from IIS 7.5. been at this for 2 days now and absolutely no luck, so ANY assistance would be greatly appreciated. script can be found below:

@echo on      
:begin

echo ftping PD files to NOC
D:
cd D:\inetpub\uploads
if NOT EXIST *.* GOTO SkipFTP
ftp -s:D:\inetpub\ftppdProgram\PDtoNOC22
cd d:\inetpub\uploads
echo y | del *.*

content of PDtoNOC22 text file:

打开xxxx

[userID]

[密码]

提示
¥b $ b cd FolderToCopyTo

lcd d:\inetpub \ uploads
mput *。*

bye

open x.x.x.x
[userID]
[password]
prompt
cd FolderToCopyTo
lcd d:\inetpub\uploads
mput *.*
bye

推荐答案

要解决这个问题。确保Windows防火墙服务正在运行。

Hi, to solve this. Make sure Windows firewall service is running.

打开Windows防火墙设置 - >转到"更改通知设置" - >标记"通知"在所有三种网络类型上。

Open Windows Firewall settings -> go to "Change Notification Settings" -> Mark "Notification" on all three network types.

运行批处理时,应弹出Windows防火墙窗口。确保允许流量。

When running the batch a Windows firewall windows should pop up. Make sure to allow the traffic.

否则你可以继续为FTP(程序)制定入站规则,并确保允许它。

Otherwise you can go ahead and make an inbound rule for FTP (program) and make sure it's allowed.


这篇关于通过使用FTPD IIS 7.5的计划任务+批处理脚本问题使用Windows ftp客户端FTP文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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