Código
procedure TForm1.Button1Click(Sender: TObject);
begin
if (fileExists('c:wellingtonteste.doc')) then
ShellExecute(Handle, nil, Pchar('c:wellingtonteste.doc'), nil, nil, SW_SHOWNORMAL)
else
showmessage('Arquivo não existe');
end;
Planeta Delphi - www.planetadelphi.com.br - Todos os direitos reservados | Copyright 2001-2009