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

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

A remote host refused an attempted connect operation.                    
Command did not complete successfully.                                  
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.


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.



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Btw, I strongly hope (for you) that you're not going to do away with your iSeries! You will regret it!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.