veja o comando HOST
Description
Executes an indicated operating system command. 
Syntax
PROCEDURE HOST
  (system_command_string  VARCHAR2);  
PROCEDURE HOST
  (system_command_string  VARCHAR2, 
   screen_action          NUMBER); 
Built-in Type  unrestricted procedure 
Enter Query Mode  yes 
Parameters
system_command_ string Specifies the system command you want to pass to your 
particular operating system. 
screen_action Specifies one of the following constants: 
no parameter  Specifies that Form Builder will: 
n clear the screen 
n prompt the operator to return from the command 
NO_PROMPT  Specifies that Form Builder will: 
n clear the screen (does not prompt the operator to return from the command) 
NO_SCREEN  Specifies that Form Builder will: 
n not clear the screen 
n not prompt the operator to return from the system command 
(The HOST command should not send output to the screen when using the NO_SCREEN 
parameter.) 
Usage notes 
· Thescreen_action parameter is only relevant to applications running in 
character mode, where the output of the Host command is displayed in the same 
window as the form.  In GUI applications, the output of the Host command is 
displayed in a separate window. 
· Note that the command interpreter for Microsoft Windows NT is cmd, while on 
Windows 95 it is command.  Before using the HOST built-in to run an external 
command, be sure to check for the operating system and pass the appropriate 
command string.
· On Microsoft Windows NT, when using HOST to execute a 16-bit application, the 
FORM_SUCCESS built-in will return TRUE whether the application succeeds or 
fails.  This is a Microsoft Win32 issue.  32-bit applications and OS commands 
will correctly return TRUE if executed sucessfully and FALSE if failed.  
Invalid commands will return FALSE.
· On Windows 95 platforms the FORM_SUCCESS built-in will always return TRUE for 
HOST commands which fail.  This includes calls to command.com or OS functions, 
any 16-bit DOS or GUI application, or an invalid command.  32-bit applications 
will correctly return TRUE if executed sucessfully and FALSE if failed.

EX:

Host( COMANDO, NO_SCREEN ); 

ABS.
Ricardo






----- Mensagem original ----
De: Guilherme Procópio Arjones <[EMAIL PROTECTED]>
Para: "oracle_br@yahoogrupos.com.br" <oracle_br@yahoogrupos.com.br>; "[EMAIL 
PROTECTED]" <[EMAIL PROTECTED]>; "oracle_br@yahoogrupos.com.br" 
<oracle_br@yahoogrupos.com.br>
Enviadas: Segunda-feira, 25 de Junho de 2007 13:52:26
Assunto: [oracle_br] Executar arquivo bat via forms

Boa Tarde Pessoal,

Preciso executar um arquivo bat pelo forms ao clicar no botão.
Alguém pode me ajudar com isso ?

Estou usando Forms 6i
Banco 10g
WinXP

Desde já agradeço,

-- 
Att,
Guilherme





       
____________________________________________________________________________________
Novo Yahoo! Cadê? - Experimente uma nova busca.
http://yahoo.com.br/oqueeuganhocomisso 

[As partes desta mensagem que não continham texto foram removidas]

Responder a