批处理脚本 [英] Batch Script

查看:69
本文介绍了批处理脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮我解决我的问题。


我有一个批处理脚本来从FTP远程计算机文件夹下载文件。


<但是,目前我正在手动更新远程计算机文件夹名称以访问文件。


Beaacuse,每天FTP服务器创建具有当前系统日期的文件夹。恩。 '20140505'。


我已经尝试了很多来解决这个问题,即使我能够在变量中生成并存储当前日期文件夹。


<但是,我无法在FTP命令中使用该变量。


所以,如果有人知道如何做到这一点,那么请告诉我。



Santosh

解决方案

FTP无法编写脚本。 &NBSP;将PowerShell与FTP客户端类一起使用,或使用一个专门用于执行所述操作的FTP客户端程序。


http://www.cuteftp.com/?pi_ad_id=37577211566


http://www.softtechdesign.com/products/WinFTP/winftp.htm



Any one help me to resolve my issues.

I have worte a batch script to download files from FTP remote computer folders.

But, currently I'm updating the remote computer folder name manually to access the files.

Beaacuse, every day FTP server create folder with current system date. ex. '20140505'.

I've tried a lots to resolve the issue, even I'm able to generate and store current date folder in variable.

But, I'm not able to use that variable in FTP command.

So, if any one know about it to how to do this, then please let me know.

Santosh

解决方案

FTP is not scriptable.  Use PowerShell with the FTP client class or use one of the FTP client programs designed to do what you ask.

http://www.cuteftp.com/?pi_ad_id=37577211566

http://www.softtechdesign.com/products/WinFTP/winftp.htm


这篇关于批处理脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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