Board index » delphi » Displaying the 'run' window dialog box

Displaying the 'run' window dialog box

How to launch windows' run dialog (the one in the start menu) to start a
prog or a file with the command line, in delphi code?
 Thomas
 

Re:Displaying the 'run' window dialog box


Hi,

Quote
Thomas Decant <tdec...@nordnet.fr> wrote:
>How to launch windows' run dialog (the one in the start menu) to start a
>prog or a file with the command line, in delphi code?
> Thomas

The Shell.Application COM object has a method to do this:
  function FileRun: HRESULT;

----
  var
    ShellApplication: Variant;
  begin
    ShellApplication := CreateOleObject('Shell.Application');
    ShellApplication.FileRun;
----

Regards,
  Thorsten

Re:Displaying the 'run' window dialog box


On 7 Jul 1999 17:13:36 GMT, "Thomas Decant" <tdec...@nordnet.fr>
scribbled:

Quote
>How to launch windows' run dialog (the one in the start menu) to start a
>prog or a file with the command line, in delphi code?
> Thomas

TMS Software have a component which gives access to various system
dialogs (via un-documented calls apparently). Their web page is :

http://www.tmssoftware.com/

HTH,
Dave.

--
Dave Hughes (hughe...@cs.man.ac.uk)
A lesson in software development taken from B5 :
"What do you want?"
"Never ask that question!"

Other Threads