muchas
gracias Jose Vicente por tu informacion, probrare lo que comentas del visul
basic script aunque estoy muy pez en ello.
un
saludo a todos
luis
-----Mensaje original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Enviado el: mi�rcoles, 10 de marzo de 2004 14:13
Para: [EMAIL PROTECTED]
Asunto: RE: evitar pantalla comandos en strpccmd
Lu�s, acabo de encontrar el documento del que te hablaba.
http://www-912.ibm.com/n_dir/nas4apar.nsf/0/6f3f306502a289b286256b1500422a5d?OpenDocument
How STRPCO and STRPCCMD work...
-------------------------------
STRPCCMD is used to start PC commands or applications from
the iSeries via an emulation session. The Client Access/400
Organizer must be started in order to use STRPCCMD. This is
accomplished with the STRPCO command. PC5250 receives
the application path string from the server and it spawns the
application. STRPCCMD has a PAUSE parameter that you can
specify to indicate whether the PC should pause after running a
command. The possible values for the PAUSE parameter are
(*YES) and (*NO). The default is (*YES).
PC5250 separates applications into two categories:
1. DOS Applications
2. Windows Applications
PC5250 determines the type of the application from the
application path string. It uses the following logic to
determine the type of the application:
1. Check if there is a file as mentioned in the application
path string. If yes, go to (2), else go to (4).
2. If the file exists, try opening the EXE header. If the EXE
header exists go to (3), else go to (4).
3. This file is a Windows application. Spawn it. Go to (5).
4. The application path string is a DOS application. Spawn
a DOS box and give it the application path string as the
parameter. Go to (5).
5. End
Example 1
STRPCCMD PCCMD('notepad.exe')
Here 'notepad.exe' exists and is a valid EXE file. So it is a
Windows application.
Example 2
STRPCCMD PCCMD('dir')
No file called 'dir' exists, so it becomes a DOS application.
PC5250 opens a DOS box and gives DIR as the parameter.
Example 3
STRPCCMD PCCMD('start notepad.exe')
No file called 'start notepad.exe' exists. PC5250 opens a DOS
box and gives 'start notepad.exe' as the parameter. The DOS
box spawns notepad.exe.
Un saludo,
Jose Vicente.
----- Remitido por Jose Vicente Cercos Barres/Vall de Laguar/ISG/GRUPOAGUAS con fecha 10/03/2004 14:03 -----
Jose Vicente Cercos Barres 10/03/2004 14:01
Para: [EMAIL PROTECTED]
cc:
Asunto: RE: evitar pantalla comandos en strpccmdV�nculo
Seg�n la documentaci�n que consult� en su d�a.
Primero verifica si es un programa Windows, y si lo es lo ejecuta sin ventana.
Si no se reconoce como aplicaci�n windows, se ejecuta en un shell de dos.
Para evitar la ventana puedes hacer que se ejecute un visual basic script que te lance el mandato.
Por ejemplo:
CL:
-----
STRPCO PCTA(*NO)
MONMSG MSGID(CPF0000)
STRPCCMD PCCMD('WSCRIPT +
\\MAQUINA\DIRECTORIO\PRUEBA.VBS +
"PARAMETRO_MANDATO"') +
PAUSE(*NO)
PRUEBA.VBS:
----------------------
PARAMETRO = WScript.Arguments(0)
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run(PARAMETRO)
Un saludo,
Jose Vicente.
Luis Crespo Carracedo <[EMAIL PROTECTED]>
Enviado por: [EMAIL PROTECTED]10/03/2004 10:41
Por favor, responda a forum.help400
Para: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:
Asunto: RE: evitar pantalla comandos en strpccmd
Gracias Antonio por tu respuesta. Ya lo tengo asi, esto lo que evita es que
la panatalla de msdos se quede abierta,es decir que se cierra cuando
finaliza el proceso bat. Lo que quiero es que ni siquiera se muestre aunque
sea solo unos segundos.
un saludo
Luis
-----Mensaje original-----
De: Lopez Plo, Antonio [mailto:[EMAIL PROTECTED]
Enviado el: martes, 09 de marzo de 2004 17:36
Para: [EMAIL PROTECTED]
Asunto: RE: evitar pantalla comandos en strpccmd
Prueba a poner el par�metro PAUSE(*NO)
-----Mensaje original-----
De: Luis Crespo Carracedo [mailto:[EMAIL PROTECTED]
Enviado el: martes, 09 de marzo de 2004 12:48
Para: Forum As400 (E-mail)
Asunto: evitar pantalla comandos en strpccmd
Saludos a todos,
alguien sabe como evitar que al ejecutar un STRPCCMD desde el as400 salga el
pantallazo negro de msdos.
gracias anticipadas
luis
_____________________________________________________
Forum.HELP400 es un servicio m�s de NEWS/400.
� Publicaciones Help400, S.L. - Todos los derechos reservados
http://www.help400.es
_____________________________________________________
Para darte de baja, env�a el mensaje resultante de pulsar
mailto:[EMAIL PROTECTED]
_____________________________________________________
Forum.HELP400 es un servicio m�s de NEWS/400.
� Publicaciones Help400, S.L. - Todos los derechos reservados
http://www.help400.es
_____________________________________________________
Para darte de baja, env�a el mensaje resultante de pulsar
mailto:[EMAIL PROTECTED]
_____________________________________________________
Forum.HELP400 es un servicio m�s de NEWS/400.
� Publicaciones Help400, S.L. - Todos los derechos reservados
http://www.help400.es
_____________________________________________________
Para darte de baja, env�a el mensaje resultante de pulsar
mailto:[EMAIL PROTECTED]
