FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
Ejecutar scripts .vbs -> Solucionado
Hola gente del foro, primero que nada me quiero presentar.
Soy Cristian, 19 años, Argentino, primer post De programacion se poco, y lo que se lo aprendi por mi cuenta leyendo, copiando, probando.... Estoy haciendo un pequeño programa que ejecuta scripts de visual basic para instalar programas. Es una lista con CheckBox que revisa una por una y ejecuta un script a la vez, y espera a que termine el instalador para ejecutar el siguiente. El programa esta casi listo, ya que lo probe con ejecutables y funciono a la perfeccion. Pero luego lo probe con los scripts y no anda Para la ejecucion use la funcion CreateProcess, ya que con esta puedo verificar si el proceso esta o no en ejecucion. Codigo: Les agradeceria que me indiquen si es posible ejecutar este tipo de archivos con esta funcion, o si hay otra que me sirva. Cristian. ----------------------------------- Edit -> Como la funcion CreateProcess solo puede ejecutar archivos .exe lo que hay que hacer para ejecutar cualquier archivo, en este caso un .vbs, se debe ejecutar el programa que lo abre diciendole que abra el archivo. El codigo quedaria asi:
Cristian. Última edición por Charly911 fecha: 12-01-2009 a las 13:15:05. |
#2
|
||||
|
||||
No se que quieres decir con "no anda".
- Significa que da error: ¿Qué error? - Significa que se queda colgado: ¿Responde a algo?, ¿ejecuta alguno de los scrips? - Alguna otra cosa? Por lo que veo, solo debería ejecutarte el primero, porque en el bucle repeat...until solo sales si el código de salida es WAIT_TIMEOUT. Supongo que la condición debería ser until (exitcode<>"Está Procesando") o until (exitcode<>0) o until (exitcode<>-1) algo así.
|
#3
|
|||
|
|||
Justo posteaste cuando estaba editando la solucion :P
El bucle anda bien, ya lo probe. Fijate lo que edite, ahi estan los cambios... Cristian. |
#4
|
||||
|
||||
Del help de Delphi 6:
Cita:
|
#5
|
|||
|
|||
duilioisola:
Te agradezco por tu ayuda, pero como comente en el primer post, se muy poco de programacion y no comprendo muy bien que es lo que hace la funcion... Igualmente ya la probe en repetidas ocaciones y funciona a la perfeccion Un saludo Cristian. |
Herramientas | Buscar en Tema |
Desplegado | |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Generacion de scripts | AMO | Oracle | 2 | 10-10-2005 17:55:15 |
Ejecutar automaticamente scripts en tiempo de ejecucion | meosre | MySQL | 1 | 30-09-2005 06:42:25 |
Scripts? | JMGR | Varios | 2 | 14-06-2005 21:03:49 |
Componente para ejecutar scripts | gendelphi | Firebird e Interbase | 1 | 02-09-2004 20:15:46 |
scripts en phpmyadmin | __cadetill | PHP | 39 | 22-04-2004 00:10:20 |
|