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.                                  
                                                                         
jenkinsmnAsked:
Who is Participating?
 
woolmilkporcConnect With a Mentor Commented:
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
 
MurpheyApplication ConsultantCommented:
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:
Btw, I strongly hope (for you) that you're not going to do away with your iSeries! You will regret it!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.