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

Can't run the native process.

dmjpro
2,476 2GB
I am running a command using Runtime.getRuntime() on Windows.
If i run 'ipconfig' it's running successfully but if i try to run 'ipconfig' with any arguments then it flashes an error ....
CreateProcess error=2
Why does this happen ..and how can i get rid out of it.

Debasis Jana
May 27 '08 #1
3 1469
JosAH
11,448 Expert 8TB
Is an IOException thrown by the ProcessBuilder (Runtime.exec)?

kind regards,

Jos
May 27 '08 #2
dmjpro
2,476 2GB
Is an IOException thrown by the ProcessBuilder (Runtime.exec)?

kind regards,

Jos
Yeah ...You are absolutely correct.
But what i am doing ....
Expand|Select|Wrap|Line Numbers
  1. String command[] = {"ipconfig","all"};
  2. Process p = Runtime.getRuntime().exec(command);
  3.  
But it's getting hanged out ...never seems to be ended ... :-)
What should i be doing?
Please help.

Debasis Jana.
May 27 '08 #3
JosAH
11,448 Expert 8TB
Yeah ...You are absolutely correct.
But what i am doing ....
Expand|Select|Wrap|Line Numbers
  1. String command[] = {"ipconfig","all"};
  2. Process p = Runtime.getRuntime().exec(command);
  3.  
But it's getting hanged out ...never seems to be ended ... :-)
What should i be doing?
Please help.

Debasis Jana.
You should read 'consume' the output produced by the "ipconfig all" process.
Remember: first read those fine API docs and only then start banging your
keyboard.

kind regards,

Jos
May 27 '08 #4

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

Similar topics

5
by: al butler | last post by:
I'm looking at the software languages and need an api to monitor a port (example:80) AND intercept eveything with the ability to stop whatever application is trying to send or recieve data on it....
1
by: Mats Olsson | last post by:
I have a native process (written in c) which generates an unknown number of bytes (jpeg images), and I would like to find an efficient way of transferring these bytes from native to java, the end...
0
by: DougD | last post by:
Hello, I have been hunting for a while on this... I need to change the process identity for my asp.net application. I'm familiar with changing the processModel node in machine.config, but it...
4
by: Beatrice Rutger | last post by:
Hi, I want to use Net Forms (I think thats what theyre called) to build a really sexy, cool front end - but then use Visual C++ (not VC++ .NET - because I want native code, not IL) to create a...
88
by: Peter Olcott | last post by:
Cab you write code directly in the Common Intermediate language? I need to optimize a critical real-time function.
0
by: Lonewolf | last post by:
Hi, I'm not sure if this has been asked before so please pardon me if this is a repeated question. Basically I have some performance critical directshow codes which is implemented in native,...
7
by: Daniel Dünker | last post by:
Hello. I was screwing around a bit with the exe-files produced by .Net Compilers and trying to understand how they work... so i ended up at the 6 Byte stub, which calls the _CorExeMain in...
9
by: DrBonzo | last post by:
In order to get events back from a DCOM server (an embedded device running Windows CE), I seem to have to turn off security for my process. To do this, I'm saying: int ret =...
0
by: walve_wei | last post by:
<1>use the D3D control panel, enable the debug DLL and maximum validation,for D3D control panel ,you need to install the directx sdk. <2>Start up the debug monitor (<MSVC install...
6
by: =?Utf-8?B?RmFiaWFu?= | last post by:
Hi, I have a pretty complicated program which consists of the following basic modules: 1. a C# application 2. a C++/CLI application which is controlled by the C# app via IPC remoting 3. lots...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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)...
1
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
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

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.