在AS400中运行批处理文件
是否有一种方法可以从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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在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.