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

Posted on 2008-11-17
Last Modified: 2013-11-17
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.                                  
Question by:jenkinsmn
    LVL 16

    Expert Comment

    by:theo kouwenhoven
    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.

    LVL 68

    Accepted Solution


    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.


    LVL 68

    Expert Comment

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

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Suggested Solutions

    Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
    How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now