Ask the Expert

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

  • There are Comments. Add yours.

     
    TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

    REGISTER or login:

    Forgot Password?
    By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
    Sort by: OldestNewest

    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: