Solved

What is the command to run other app?

Posted on 1997-10-14
3
153 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

705 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now