473,396 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

C++ App to Run in DOS and Launch Another App

I have a problem that I can't seem to solve:

I need to write a C++ app that will run off of a floppy.
Basically, I will boot into DOS (from a floppy), and run my
executable
from the floppy. The executable will crunch some data and then
launch
another application.
How can I launch the other application?
I've tried system(), but it needs a specific path, which isn't viable
in DOS mode. The two apps will be in the same directory, so
basically
this is the process:
CrunchData();
LaunchApp();
How could I launch the other app? I don't think ShellExecute() or the
Process class will work since this will be running in DOS, but I may
be wrong.

Thanks so much.
Oct 20 '08 #1
6 2608
te******@gmail.com wrote:
[..]
How could I launch the other app? I don't think ShellExecute() or the
Process class will work since this will be running in DOS, but I may
be wrong.
You're asking something specific to your platform, not to the language.
Please consider asking in the newsgroup that deals with your OS.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Oct 20 '08 #2
te******@gmail.com wrote:
On Oct 20, 1:34 pm, Victor Bazarov <v.Abaza...@comAcast.netwrote:
>tempn...@gmail.com wrote:
>>[..]
How could I launch the other app? I don't think ShellExecute() or the
Process class will work since this will be running in DOS, but I may
be wrong.
You're asking something specific to your platform, not to the language.
Please consider asking in the newsgroup that deals with your OS.


Well, actually, the question is specific to both the platform and the
language. This board has more members than does the DOS board, so I
figured I would get more responses and quicker feedback.

Since my question IS focused on C++,
OK, what is your C++ language question?

--
Ian Collins
Oct 20 '08 #3

how can i launch another executable without using system() or the
Process class? It needs to work in DOS.
Oct 20 '08 #4
[context?]

te******@gmail.com wrote:
how can i launch another executable without using system() or the
Process class? It needs to work in DOS.
That's a DOS question, not a C++ language one.

The C++ answer would be to use system(). The standard language doesn't
provide any other means of launching an executable.

--
Ian Collins
Oct 20 '08 #5
On 2008-10-20 21:08, Ian Collins wrote:
[context?]

te******@gmail.com wrote:
>how can i launch another executable without using system() or the
Process class? It needs to work in DOS.

That's a DOS question, not a C++ language one.

The C++ answer would be to use system(). The standard language doesn't
provide any other means of launching an executable.

To clarify a bit why this is not a C++ question it should be mentioned
that system() invokes platform-dependent behaviour, so questions about
how to use system() should be directed to a group discussing the platform.

--
Erik Wikström
Oct 20 '08 #6
On Oct 20, 12:58*pm, tempn...@gmail.com wrote:
I have a problem that I can't seem to solve:

I need to write a C++ app that will run off of a floppy.
Basically, I will boot into DOS (from a floppy), and run my
executable
from the floppy. *The executable will crunch some data and then
launch
another application.

How can I launch the other application?

I've tried system(), but it needs a specific path, which isn't viable
in DOS mode. *The two apps will be in the same directory, so
basically
this is the process:

CrunchData();
LaunchApp();

How could I launch the other app? *I don't think ShellExecute() or the
Process class will work since this will be running in DOS, but I may
be wrong.

Thanks so much.
Just use a .bat file to run your apps. This way, you can set up the
PATH variable *before* you launch your first app. But if you use a
..bat file, you can just launch your first app, and then depending on
it's return code, launch your second app and there will be no need
for the first app to launch the second app (or any need to set the
path). .bat files are the lowest common denominator "shell" for
windows/DOS apps.

HTH
Oct 21 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Bob Bedford | last post by:
I've a script that must "launch" an other script on some situations. firstscript.php: .... If ($newarticle) //launch secondscript.php .... The "secondscript.php" may take quite long, and is...
0
by: Alan Franklin | last post by:
I'm bouncing off of "out-of-memory" errors using current release of eclipse. OK, so I've ferreted around and found that I have to pass special arguments to the JVM to get it to use more that a...
0
by: Jeff Cooper | last post by:
Hi folks, I have a small VB app and I've created a deployment project for it. At the end of installation I would like the user to get a prompt like "Run your new program now? yes/no" -- or...
4
by: Caroline | last post by:
I'd like to launch an executable file from a web page. Basically, the user enters seven parameters and then clicks a button to generate a graph. The input is written to a file and then read by...
8
by: Dutchy | last post by:
Dear reader, In an attempt to obtain the path to the quick-launch-folder in order to create a shortcut to my application-updates during installation , I thought to: 1- check if quick launch...
1
by: Jo | last post by:
I am having a real problem with the Launch conditions in VS .NET and can only come to the conclusion that it is a bug. It states quite emphatically in the MSDN that Launch Conditions WILL be...
1
by: Michael Howes | last post by:
I have a c# windows form that talks to a web service on a server that then can talk to multiple "agents" on different machines using web service calls. I want to be able to launch an application...
5
by: GrantS | last post by:
Hi I am trying to use ShellExecute to launch an application to display a certain file. The variation on the theme is that I need to be able to specify the application to launch and not simply...
4
by: Joe | last post by:
I created a CustomAction for this but I don't think I have it in the right place. I tried both Install and Commit but neither allow it to get to the final screen. Are there any examples of this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.