Dynamics AX 2009:如何从AOS上的批处理作业进行FTP [英] Dynamics AX 2009: How to FTP from a batch job on an AOS

查看:69
本文介绍了Dynamics AX 2009:如何从AOS上的批处理作业进行FTP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用AX搜索FTP文件的方式进行了大量的搜索之后,我很高兴发现WinInet类,该类或多或少只是同名.DLL的包装.我以为我的问题解决了!但是,我不知道该课程有一个主要致命弱点-它没有批量运行(在服务器上).

After quite a few searches for ways to FTP files in AX, I was happy to discover the WinInet class, which is more or less just a wrapper for the .DLL of the same name. I thought my problems were solved! I was not aware, however, that the class had a major Achilles heel -- it doesn't run in batch (on a server).

有人能指出我正确的方向吗?具体来说,我想在服务器运行的批处理作业(以具有相关文件管理员权限的服务用户身份运行)上将文件上传(通过FTP放置)到另一台服务器.有人吗?

Can anybody point me in the right direction? Specifically, I want to upload (FTP put) a file to another server in a server-run batch job (running as a service user with admin rights to the file in question). Anybody?

推荐答案

There is another example of using .NET classes for FTP in Axaptapedia. It is different enough from 10p's example code to take a look...

以我自己的经验,我最终编写了代码,然后根据需要使用特殊的FTP客户端,从命令行调用bat文件以传递ftp命令!以下是使用Shell脚本的两个示例-净时间 &&

In my own experience I ended up writing and then calling a bat file from the command line to pass in ftp commands as we needed to use a special FTP client! Here are two examples of using shell scripting - Net Time && Run a Process.

这篇关于Dynamics AX 2009:如何从AOS上的批处理作业进行FTP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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