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

Start processes in the same DOS-window

Wim
From my Windows app I would like to open a DOS-window (Process.Start
("cmd", "/k");) and then run a number of processes in that DOS-window.
How can I arrange that these processes start in that DOS-window?

--
Wim
Nov 15 '05 #1
2 1521
Wim,

I don't believe this is possible. At the best, you can get it to run in
another process. The reason for this is that you need to know how to hook
up to the code so that it can be run in the thread that you are executing
in. Without some way to interoperate with the executables that you want to
run (through COM interop, P/Invoke, etc, etc), there is no entry point into
these executables, except for the one that the OS uses when actually
executing in a new process.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Wim" <wi*@nospam.invalid> wrote in message
news:Xn******************************@213.51.144.3 6...
From my Windows app I would like to open a DOS-window (Process.Start
("cmd", "/k");) and then run a number of processes in that DOS-window.
How can I arrange that these processes start in that DOS-window?

--
Wim

Nov 15 '05 #2
Hmm.. not exactly the way you want it, but you can create a temporary text
"batch" file and run it.

-vJ

"Wim" <wi*@nospam.invalid> wrote in message
news:Xn******************************@213.51.144.3 6...
From my Windows app I would like to open a DOS-window (Process.Start
("cmd", "/k");) and then run a number of processes in that DOS-window.
How can I arrange that these processes start in that DOS-window?

--
Wim

Nov 15 '05 #3

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

Similar topics

30
by: Stephen Ferg | last post by:
I have a question that is not directly Python-related. But I thought I'd ask the most erudite group that I know... :-) When did Windows start accepting the forward slash as a path separator...
3
by: James Li | last post by:
I have the code below, the first process takes about 10 minutes to finish. But the waitForExit doesn't seem to wait when I debug the program, it go immediately to execute code after the...
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
1
by: Nikolas via .NET 247 | last post by:
Hello All, I am trying to start some processes from a VB.NET applicationwindow. BUT; I dont want to hardwire the filenames by using the wholepathname of the .exe eg: Shell(c:\windows\calc.exe")....
0
by: laridae | last post by:
I wrote a program to copy files from lots of different remote servers to a centrally based server. It uses robocopy, but is written in vb.net to add extra features, eg it records how long it to to...
2
by: Miro | last post by:
In VB-2003, I was wondering if someone can point me in the right direction: Lets say the user has a shortcut on his desktop to your app. 1. Is there any way to capture what the "Start In"...
0
by: Innes MacKenzie | last post by:
I have an application (a .NET 2.0 windows service) which launches numerous short-lived processes (also a .NET 2.0 application). Occasionally, one or two of these processes will not run properly but...
6
by: somequestion | last post by:
there are some dos command < or > it can use like this if there is a batch file as sample.bat sample.bat < parameter sample.bat parameter result . i just wanna use this when i use...
1
by: TechnoAtif | last post by:
Could not start the mysql service on localcomputer Error 1067:The process terminated unexpectedly. ------------------------------------------------------------------------------ Hi All. I 'm...
2
by: Tim Kelley | last post by:
I have an application that I have distributed using one click install. I selected the option to allow the program to be run if the server is offline. From another program I want to be able to...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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.