Solved

What is the command to run other app?

Posted on 1997-10-14
3
159 Views
Last Modified: 2010-05-18
I maen,
in turbo pascal this command is: exec();
i need to know what is the command in Delphi
i want to run e.g the app netscape.exe what is the comand
line?
0
Comment
Question by:dima_sherman
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
JimBob091197 earned 50 total points
ID: 1347484
Use WinExec or CreateProcess.
Example:  WinExec('C:\WhatEver\Netscape.exe', SW_SHOWNORMAL);

JB
0
 

Author Comment

by:dima_sherman
ID: 1347485
You ll need to add more info next time!
0
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1347486
I think you'll find that I gave you more info than you asked for:
"What is the command to run other app?" ... "In Turbo Pascal this command is: exec(); I need to know what is the command in Delphi."

I gave you TWO commands, and an example.  If you know how to use Exec in Turbo Pascal, then WinExec shouldn't need much explaining...  CreateProcess was merely there for your info.  Delphi's helpfile will spoon-feed the rest to you.

By the way, you're welcome.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question