Q

Running a .BAT file from the IFS

How can I run a .BAT file stored in an IFS directory from a batched CL program? OS/400 is not capable of running

batch file (hank goodness for this) so you will need a PC with the following attributes:

  • Install Client Access on the PC (i.e. MYPC)
  • Activate the incoming remote command service
  • Map network drive from the PC to your iSeries (i.e. f = mydir on the iSeries where the batch file resides in mydir directory)
  • Run remote command from the iSeries batch file:

    RUNRMTCMD CMD('f:mybat')
    RMTLOCNAME(MYPC *IP)
    RMTUSER(RMTUSR)

    ==================================
    MORE INFORMATION ON THIS TOPIC
    ==================================

    Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.

    The Best Web Links: Tips, tutorials and more.

    PC/Windows connectivity expert Shahar Mor is available to answer your toughest networking questions. Ask Shahar a question or read his previously answered questions here.


  • This was first published in August 2004

    Dig deeper on FTP

    Have a question for an expert?

    Please add a title for your question

    Get answers from a TechTarget expert on whatever's puzzling you.

    You will be able to add details on the next page.

    0 comments

    Oldest 

    Forgot Password?

    No problem! Submit your e-mail address below. We'll send you an email containing your password.

    Your password has been sent to:

    SearchEnterpriseLinux

    SearchDataCenter

    Close