One way is to use the RUNRMTCMD command. In your application program test for F2 being used. If it is, then run the RUNRMTCMD command. RUNRMTCMD CMD(‘C:\DOCUME~1\BRUCEV~1\LIST.BAT’) RMTLOCNAME(‘xxx.xxx.xxx.xxx’ *IP) RMTUSER(‘MyUser’) RMTPWD(‘yyyyyyy’) for instance will run the bat file LIST on the PC at IP address xxx.xxx.xxx.xxx using a Windows user id of MyUser and a password of yyyyyyy.
There are several other ways, but this is probably the easiest.