Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Grupo de Teaming del ClubDelphi

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 02-12-2003
pruz pruz is offline
Miembro
 
Registrado: sep 2003
Posts: 170
Poder: 21
pruz Va por buen camino
Question ejecutar un .bat Como?

hola amigos,

no se como utilizar el shellexecute u otra instruccion para ejecutar un programa .bat, trate de usar el mencioando y no encuentra la funcion, trabajo con delphi 6

Saludos,
Pruz
Responder Con Cita
  #2  
Antiguo 02-12-2003
Nadie Nadie is offline
Miembro
 
Registrado: ago 2003
Ubicación: http://manchasenlapared.blogspot.com
Posts: 75
Poder: 21
Nadie Va por buen camino
Código:
(...)
uses shellapi;
(...)
begin
 shellexecute(handle,nil,'notepad.exe',nil,nil,sw_shownormal);
end;
(...)
Responder Con Cita
  #3  
Antiguo 02-12-2003
pruz pruz is offline
Miembro
 
Registrado: sep 2003
Posts: 170
Poder: 21
pruz Va por buen camino
Gracias Nadie por responder,

pero me aparece error

var
xx : string;
begin

xx := rutaflex + 'cuentas.bat';
Shellexecute(handle,nil, xx ,nil,nil,sw_shownormal);


end;

[Error] UDetCosto.pas(120): Incompatible types: 'String' and 'PChar'

que hacer
Gracias
Responder Con Cita
  #4  
Antiguo 02-12-2003
__cadetill __cadetill is offline
Miembro
 
Registrado: may 2003
Posts: 3.387
Poder: 25
__cadetill Va por buen camino
Cita:
pruz comentó:
var
xx : string;
begin

xx := rutaflex + 'cuentas.bat';
Shellexecute(handle,nil, PChar(xx) ,nil,nil,sw_shownormal);


end;
Responder Con Cita
  #5  
Antiguo 02-12-2003
pruz pruz is offline
Miembro
 
Registrado: sep 2003
Posts: 170
Poder: 21
pruz Va por buen camino
gracias, entendido,
Responder Con Cita
Respuesta



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro


La franja horaria es GMT +2. Ahora son las 20:59:48.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi