use shellapi ..... procedure TForm1.Button1Click(Sender: TObject); begin ShellExecute(Handle, 'open', PChar('C:\SQLInfo.txt'), nil, nil, SW_SHOWNORMAL); end;