The Start PC Command (STRPCCMD) command allows you to run a single application, a DOS command, or an OS/2 command on an attached personal computer.
The Start Client Access Organizer (STRPCO) command starts the Client Access Organizer on the host system.
Note: The STRPCO CL command must be issued before running the STRPCCMD CL command.
Find the sample code below.
<pre> DCL VAR(&CMD) TYPE(*CHAR) LEN(500) CHGVAR VAR(&CMD) VALUE('START ' || + 'http://www.google.co.in') STRPCO PCTA(*NO) MONMSG MSGID(IWS4010) STRPCCMD PCCMD(&CMD) PAUSE(*NO) </pre>
Pradeep.
Last Wiki Answer Submitted: December 19, 2011 8:53 am by deepu93213,520 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
The STRPCCMD command can execute a PC command back on a PC that is running a telnet session through a telnet emulator if the emulator supports STRPCCMD. The command works by sending a specially crafted 5250 screen back to the emulator. The PC command will run under the user who is logged onto the PC.
It is a very powerful command that can be used to do a lot of things on a PC from a menu option on an AS400(whoops) screen. Look up RUNDLL and be amazed at the options available. a few examples – Open pc printer foldes, BEEP, shutdown, open Word with specified file, Open excel with specfied file, force a logoff , disable/enable mouse and/or keyboard. specify default printer. and much more. Can be very useful in an enviornment where PCs lockdown are needed to prevent the USERs named “NOT ME” and I DON”T KNOW” from accidently screwing up stuff.
DCL VAR(&CMD) TYPE(*CHAR) LEN(500) CHGVAR VAR(&CMD) VALUE('START ' || 'http://www.google.co.in') STRPCO PCTA(*NO) MONMSG MSGID(IWS4010) STRPCCMD PCCMD(&CMD) PAUSE(*NO)Pradeep.
On command line type the command that you are interested in and type F4 then move to the top of the display and type F1.
The STRPCCMD command can execute a PC command back on a PC that is running a telnet session through a telnet emulator if the emulator supports STRPCCMD. The command works by sending a specially crafted 5250 screen back to the emulator. The PC command will run under the user who is logged onto the PC.
Tom
It is a very powerful command that can be used to do a lot of things on a PC from a menu option on an AS400(whoops) screen. Look up RUNDLL and be amazed at the options available. a few examples – Open pc printer foldes, BEEP, shutdown, open Word with specified file, Open excel with specfied file, force a logoff , disable/enable mouse and/or keyboard. specify default printer. and much more. Can be very useful in an enviornment where PCs lockdown are needed to prevent the USERs named “NOT ME” and I DON”T KNOW” from accidently screwing up stuff.