Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I run command line instructions 1

Status
Not open for further replies.

amethystct

Programmer
Jan 26, 2004
21
FR
I am trying to write this quick li'l thing to do an ls in a given directory and return the results (if any) to the screen. I thought I could use Runtime.exec but in reading up it says that should really only be used to run programs. What would I use instead?

Thank you in advance for your help :)
 
Thank you Sedj! That is exactly what I'd been looking for :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top