Hi,
while attempting to execute a bat file containing a sqlldr command i have an error like "2100 RDBMS not found".
If i execute the bat file via command line this error not occure.

This is the code that i use to run the bat:
.........
ExecuteFile:=nf;
FillChar(SEInfo, SizeOf(SEInfo), 0) ;
SEInfo.cbSize := SizeOf(TShellExecuteInfo) ;
with SEInfo do begin
fMask := SEE_MASK_NOCLOSEPROCESS;
Wnd := Application.Handle;
lpFile := PChar(ExecuteFile) ;
nShow := SW_SHOWNORMAL;
end;
if ShellExecuteEx(@SEInfo) then begin
repeat
Application.ProcessMessages;
GetExitCodeProcess(SEInfo.hProcess, ExitCode) ;
until (ExitCode <> STILL_ACTIVE) or
Application.Terminated;
// Rimane in lock fintanto che non do ok sulla finestra
// ShowMessage(sCaption+' eseguito.') ;
Log(Sender,'fine esecuzione bat '+nf);
StatusBar.SimpleText:=sCaption+' eseguito.';
end
else ShowMessage('Error....!') ;

The code its ok for other command only with sqlldr.exe
It seems it run sqlldr bat with a wrong oracle_home???

Thanks in advance