473,387 Members | 1,440 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,387 software developers and data experts.

executing a standalone C++ program from DOS..

1
Hello guys, hope one of you may help.

I am trying to find a way of executing a standalone c++ program from the dos window. i have tried to type programname.exe but with no results. am i mistyping it or is there another way of doing it...

Any help would be appreciated.
PS. It is a standalone program. so no installation was required. simply had to drop the folder on my system.

many thanks
Dec 4 '06 #1
4 1781
Where is your program located ? Is it at current directory where the dos prompt is pointing?
Dec 4 '06 #2
horace1
1,510 Expert 1GB
Hello guys, hope one of you may help.

I am trying to find a way of executing a standalone c++ program from the dos window. i have tried to type programname.exe but with no results. am i mistyping it or is there another way of doing it...

Any help would be appreciated.
PS. It is a standalone program. so no installation was required. simply had to drop the folder on my system.

many thanks
can you see the .exe file in Windows Explorer?

if so open a Command Prompt, change to the directory where it is located and execute it, e.g. if the file is c:\test\cprogram\program.exe you would type at the DOS prompt
Expand|Select|Wrap|Line Numbers
  1. cd c:\test\cprogram
  2. program
  3.  
Dec 4 '06 #3
macklin01
145 100+
You need to make sure that the program is in your system path. (e.g., c:\windows\.)

One thing you might consider doing is creating a c:\bin directory, adding c:\bin to your path, and putting any custom executables there. -- Paul
Dec 6 '06 #4
drhowarddrfine
7,435 Expert 4TB
As a side note, it doesn't matter what language the program was written in as long as it's an .exe file.
Dec 6 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: Nick Coghlan | last post by:
Python 2.4's -m command line switch only works for modules directly on sys.path. Trying to use it with modules inside packages will fail with a "Module not found" error. This PEP aims to fix that...
0
by: Ian Warford | last post by:
Hi, I have a problem with a PL/PerlU function trying to execute an external perl script. The script is suid to a non-root user and I am executing it in the PL/PerlU function as so : $rc =...
15
by: (Pete Cresswell) | last post by:
I've got a .BAT file that I use for executing various MS Access apps that I wrote way back in the days of 2.0. It's evolved over time, but it still contains a number of possible paths to...
6
by: Jeremy | last post by:
How do I programatically run a dos command like 'dir' (I assume this will be the same way as running normal files, which I'd like to know how to do too). Also, will the output from this go into...
2
by: JohnR | last post by:
Hi all. In my program I try to handle all obvious potential errors with structured error handling (try-catch) block. What I would like to do is have an 'overall' error handler that would...
13
by: Wog George | last post by:
I need to create an EXE that is truly "standalone". By that, I mean the executable file is all that's required for the application to run. My app has a button that fires up a common control (to...
7
by: dspfun | last post by:
How do you create a standalone C program? With standalone C program I mean it should run "freestanding" on a CPU without an OS or other supporting software/libraries linked to the C program. After...
4
by: Ted Lyngmo | last post by:
Hi! I'm new (but please do continue reading) to C++ in the VS environment and wanted to create a standalone program (or preferably, a static library, compatible with other Windows compilers)...
1
by: Catbkr1 | last post by:
I have to automatically create some Excel Spreadsheets based on automatically generated .CSV files that are produced overnight. Each .CSV has several columns that need to be deleted. The same...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.