Two Laptop Bag
The moose likes Other JSE/JEE APIs and the fly likes Using a command line from within a java program Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "Using a command line from within a java program" Watch "Using a command line from within a java program" New topic
Author

Using a command line from within a java program

Eibhlin Reid
Greenhorn

Joined: Nov 04, 2004
Posts: 28
Hi,

Is it possible to use a command line from inside a java program for example, would it be possible to write a method to call regsvr32 [some .dll name]?? If it is possible any ideas how? And if not are there any possible alternatives?
Lionel Badiou
Ranch Hand

Joined: Jan 06, 2005
Posts: 140
Hello,

Did you check out the Runtime.exec() methods ?

Hope that helps,


Lionel Badiou
CodeFutures Software
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using a command line from within a java program
 
Similar Threads
runtime exec
NoClassDefFoundError
Executing a UNIX shell script using JAVA
Stopping command line execution
Printing Word document from Java