473,320 Members | 2,048 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,320 software developers and data experts.

Executing the executable

Using Microsft Visual Studio C++ 6.0, I have compiled my code and I
need to execute this executable by specifying my input file and my
output file, eg. ./DMDC2 input > output. Input file is a separate
normal file and not a visual C++ file.
Jul 22 '05 #1
6 1308

"Vikram" <vi*****@hotmail.com> wrote in message
news:d5**************************@posting.google.c om...
Using Microsft Visual Studio C++ 6.0, I have compiled my code and I
need to execute this executable by specifying my input file and my
output file, eg. ./DMDC2 input > output. Input file is a separate
normal file and not a visual C++ file.


It's offtopic on this newsgroup.
Read the welcome message - http://www.slack.net/~shiva/welcome.txt

<OT>Perhaps ShellExecute(Ex) is what you are looking for.</OT>
Jul 22 '05 #2
Vikram wrote:

Using Microsft Visual Studio C++ 6.0, I have compiled my code and I
need to execute this executable by specifying my input file and my
output file, eg. ./DMDC2 input > output.


OK.
Open up a DOS prompt, go to the directory where the exe resides and
start it.

To bad most people in these days no longer know how to operate
a command line.

--
Karl Heinz Buchegger
kb******@gascad.at
Jul 22 '05 #3
On 2004-07-23 11:40:52 +0200, Karl Heinz Buchegger <kb******@gascad.at> said:
Vikram wrote:
Using Microsft Visual Studio C++ 6.0, I have compiled my code and I
need to execute this executable by specifying my input file and my
output file, eg. ./DMDC2 input > output.


OK.
Open up a DOS prompt, go to the directory where the exe resides and
start it.

To bad most people in these days no longer know how to operate
a command line.


<OT>If he wants to debug the code you can add command line arguments in
the project settings</OT>

As a hunch: microsoft.public.vstudio.general seems alive and might be
able to help you better...

Jul 22 '05 #4
Karl Heinz Buchegger posted:
To bad most people in these days no longer know how to operate a command line.


DOS Secrets by Dan Gooding

That was a great companion of mine from age 7 upwards.
ansi.sys deserves a medal.
-JKop
Jul 22 '05 #5
Vikram wrote:
Using Microsft Visual Studio C++ 6.0, I have compiled my code and I
need to execute this executable by specifying my input file and my
output file, eg. ./DMDC2 input > output. Input file is a separate
normal file and not a visual C++ file.


What is a "separate normal file" and how does it differ from:
o A text file
o A database file
o A Microsoft Word file?
o A JPEG file?
o A MPeg file?
o A visual C++ project file?
I think most of these are normal files.

Look up the system() function.

Also, look at your operating system help file. The
operating system may have functions to execute other
files.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book

Jul 22 '05 #6
Thomas Matthews wrote:
Also, look at your operating system help file. The
operating system may have functions to execute other
files.


system("start filename.ext");

--
Phlip
http://industrialxp.org/community/bi...UserInterfaces
Jul 22 '05 #7

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

Similar topics

8
by: Darren Dale | last post by:
Is there a place to put python programs so I dont have to refer to the absolute path everytime I want to call them? For example: if I am in /home/me and want to execute: python...
13
by: Darren Dale | last post by:
Some time ago I asked about executing a python program or script. For windows, I was informed that the .py extension could be added to some list of executable extensions, and then I could just type...
8
by: Alan | last post by:
When I run an executable directly (there's no console output), an MS-DOS windows opens briefly, then closes. When I call my executable from a batch file, the window stays open and says "finished."...
4
by: Yoni Gibbs | last post by:
Hi, Once an assembly has been downloaded into the GAC, is it possible to execute it locally somehow? e.g. if I download an exe into the GAC, can the client PC simply run this assembly directly,...
0
by: BasicQ | last post by:
I am running an executable from my aspx page with the click of a button. A date is passed as an argument. I am able to get the standardoutput from the Process(Exe) into the label of my page after...
5
by: erman.olca | last post by:
Hi all, I have a question for you. I used a program two days ago. there was a lan and program was just on one computer. But other computers have its short cut icon on their desktop. And it...
10
by: gum | last post by:
Other than argv is there a way to obtain the name of the executable programatically?
14
by: noridotjabi | last post by:
Two questions. 1)Is there any way that I can read from an executable and then execute what I have read. EXAMPLE: text text this is more text
4
by: Kiran | last post by:
Hi everybody, I am making python run an executable using the os module. Here is my question. The executable, once it is running, asks the user to input a filename that it will process. Now, my...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.