Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running other programs by delphi program 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How can i run other programs, example Notepad, by a delphi- program?
 
Hi niemisto88
The simplist way is to use the executefile function you will find this in 'demos/doc/filemanex' folder
call it like this:--

ExecuteFile('C:\windows\Notepad.exe', ' Any parameters your program may require', 'Folder to use', SW_SHOW);

Where
parameters can be empty string '' for notepad you can pass the name of the file you want to open.
default dir can be empty string''
The final parameter defines the window the program will run in. See the help for possible values.

Hope this helps
Steve
 
Thanks, but why this doesn't work in ActiveX Form?
I get this message, when i click the run-button in ActiveX Form:

Acces violation at address 0125433B in module 'PIKAVALINTAPROJ.OCX'. Read of address FFFFFFFF.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top