Learn more. Asked 9 years, 7 months ago. Active 2 years, 1 month ago. Viewed k times. I have to open a. So I tried following code First. I need to clse my command prompt when my application stats. Improve this question. DimaSan Dilip Rajkumar Dilip Rajkumar 6, 6 6 gold badges 58 58 silver badges 75 75 bronze badges. Add a comment. Active Oldest Votes. You don't need a console. You can execute a process using a working directory: exec String command, String[] envp, File dir Executes the specified string command in a separate process with the specified environment and working directory.
Improve this answer. Schifty Schifty 1 1 gold badge 6 6 silver badges 17 17 bronze badges. So essentially Runtime. KuldeepJain That's not entirely true and a bit misleading.
If the exe is in PATH then it's true full path is not needed, but otherwise, it is. Nom1fan, Looks like you did not follow my comment well.
The path can be specified in the 3rd parameter. I mentioned to not give full path in 1st parameter. Please see my example I gave in comment.
You can also read further at: docs. Kuldeep Jain Kuldeep Jain 7, 8 8 gold badges 44 44 silver badges 60 60 bronze badges. Thanks Kuldeep I have already tried this..
It is expecting me to be in the same directory of. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem.
Insults are not welcome. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question. Let's work to help developers, not make them feel stupid. Related Questions. About load an EXE file and run it from memory. Should I create exe file or not? Not able to run the exe generated after following wix code. Even from program files the application is not running.
How to create desktop shortcut for an exe in batch file? Run An other exe file through vb6. Layout: fixed fluid. Web04 2. Strip HTML. Encode HTML.
SHARE 4. Thank you very much for ur help. I like to use applications programatically. Can I do this task by java or any programming language? SHARE 5. SHARE 6. SHARE 7. Now I want to open the same exe by passing two parameters How can I do that? SHARE 8.
0コメント