Link to home
Start Free TrialLog in
Avatar of jenkinsmn
jenkinsmn

asked on

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
https://www.experts-exchange.com/questions/21924497/RUNRMTCMD.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.                                  
                                                                         
Avatar of Theo Kouwenhoven
Theo Kouwenhoven
Flag of Netherlands image

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
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Btw, I strongly hope (for you) that you're not going to do away with your iSeries! You will regret it!