IntelliJ Java IDE
The moose likes Ant, Maven and Other Build Tools and the fly likes Command execution on files within the current directory and subdirectories Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Command execution on files within the current directory and subdirectories" Watch "Command execution on files within the current directory and subdirectories" New topic
Author

Command execution on files within the current directory and subdirectories

srinivasan ganesan
Ranch Hand

Joined: Mar 09, 2001
Posts: 54
Could someone help me in achieving this? I need to able to execute a command on the files on the base directory as well as all the files in the subdirectories.
I was only able to do this for the files on the base directory but I'm not sure how to recurse through all the sub directories and execute the same command on the files in the sub directories.
I'd appreciate any help.
Thanks,
Srinivas
 
IntelliJ Java IDE
 
subject: Command execution on files within the current directory and subdirectories
 
Threads others viewed
Directory deleting
copy recursivley specific file
Scanning a whole directory?
How to Create Directory structure similar to Microsoft Explorer
is it a bug or somethingelse?
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com