• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1156
  • Last Modified:

Run a DOS batch file on a pc from the i5 using the RUNRMTCMD command

We need to move files from the IBM i5series server to a Windows 2003 server. The requirement is to exeute a ".bat" file on the windows system.  The destination directory is shared on the Windows 2003 server.  The ibm user account has identical credentials on the Win2003.

When the bat file is run from the DOS command shell on the pc - it works properly.

We reviewed this EE thread but it's not resolved using runrmtcmd
http://www.experts-exchange.com/Programming/Programming_Platforms/AS400/Q_21924497.html

When our command is executed on the I5 this is the output to the job log.

RUNRMTCMD CMD('c:\cb.bat') RMTLOCNAME('10.18.16.201' *IP) RMTUSER(*NONE)
A remote host refused an attempted connect operation.                    
Command did not complete successfully.                                  
                                                                         
0
jenkinsmn
Asked:
jenkinsmn
  • 2
1 Solution
 
theo kouwenhovenCommented:
Hi jenkinsmn,

Why using a bat file to retrieve a as/400 file?
you can use batch file transfer using RTOPCB.EXE...
this command will execute previous created transfer scripts.

Regards,
Murph
0
 
woolmilkporcCommented:
Hi,

please check whether the service '"iSeries Access for Windows - Remote Command" (C:\winnt\cwbrxd.exe)' is running on your Windows box. It is part of 'iSeries Access V5R3'.

After installing/starting it, 'netstat -ab' should show it listening on port 512.


wmp


0
 
woolmilkporcCommented:
Btw, I strongly hope (for you) that you're not going to do away with your iSeries! You will regret it!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now