This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Listing all directories from a given root in batch file

 
Garrett Rowe
Ranch Hand
Posts: 1296
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I list all directories from a batch file from a given root path. Ideally I'd like to list the full path to the directory, equivalent to this Java code



The last thing I came up with was:

Which does list all the directories given a starting directory, but it just list the directory name, not the path
 
Garrett Rowe
Ranch Hand
Posts: 1296
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, so I found one way using the %CD% "pseudovariable" that gives the current directory



I'd imagine that there is an easier way than this, but I haven't figured it out yet.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic