在AS400中运行批处理文件

发布于 2025-01-30 07:31:12 字数 276 浏览 2 评论 0原文

是否有一种方法可以从AS400命令行上的本地AS400服务器上运行批处理文件,因为此批处理文件存在于我的本地AS400服务器上的共享文件夹上。

批处理文件:

   cd  C:\D1
    for /R %%f in (*.xml) do (
         echo "%%f" 
         copy %%f  C:\backup
         move %%f  Z:\
          GOTO :Exit
    )
    
    :Exit

Is there a way to run a batch file on my local as400 server from as400 command line as this batch file exists at a shared folder exists on my local as400 server.

batch file:

   cd  C:\D1
    for /R %%f in (*.xml) do (
         echo "%%f" 
         copy %%f  C:\backup
         move %%f  Z:\
          GOTO :Exit
    )
    
    :Exit

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情丝乱 2025-02-06 07:31:12

在IBMI上运行批处理文件,例如.bat或.cmd ia。
但是,当在IFS(或IBMI共享)上可用时,您可以在PC上运行。
如果您确实需要在IBMI上运行它,则需要使用QSHELL(QSH)环境(QSHELL是基于POSIX和X/OPEN标准的命令环境)。
因此,您可以在其上运行Linux命令。
但是,如果我查看您的示例脚本,IBMI没有C:不是Z:磁盘。

Running Batch files like .bat or .cmd ia nor possible on the IBMi.
But, you can run then on the PC when the batchfile is available on the IFS (or a IBMi share).
If you realy need to run it on the IBMi, then you need to use the QSHELL (QSH) environment (Qshell is a command environment based on POSIX and X/Open standards).
So you can run linux commands on it.
But if I look to your example script, IBMi doesn't have a C: not Z: disk.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文