Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Running System Commands from Java
Name: chrisjasp Date: December 10, 2004 at 21:45:47 Pacific OS: linux CPU/Ram: 1.3G
Comment:
Im pretty new to java so bear with me. I already know how to execute a system command with the Runtime class. My questions is, Is there a way if the command you execute promts for more input that cannot be included as an argument can you send that to that object you create with the initial execution of the command. If not or if so for that matter. How is this done. My only other option would be to generate the information in an expect script and execute that from my java app.
Summary: I want to run dos commands from my dialog box.I get the commands from the user through edit box of my dialog box .i am using visual c++ .please tell me how can i do so and i appreciate if u can give ...
Summary: Don, In your example the runtime exec will look for a file called "dir" with a ".com", ".exe" or ".bat" extension. This will not be found as the DOS command "dir" is an internal command, ie it is load...