Solved

Windows Commandline tool to list objects in a directory

Posted on 2011-02-27
3
293 Views
Last Modified: 2012-05-11
Hi,

I am looking for a commandline utility (preferably one inbuilt into Windows) that will list me every object within a directory, and the full path to that object. For example, in C:\Stuff:

C:\Stuff\obj1.xxx
C:\Stuff\obj2.xxx
C:\Stuff\onj3.xxx
C:\Stuff\dir1\obj1.xxx
C:\Stuff\dir1\obj2.xxx
C:\Stuff\dir2\obj1.xxx

Etc.

I need it to have no garbage, simply every single object and the full paths to each object within a given directory.

Cheers

0
Comment
Question by:agbnielsen
  • 2
3 Comments
 
LVL 53

Accepted Solution

by:
Bill Prew earned 500 total points
ID: 34994154
Sure, at a command line just do:

DIR /B C:\TEMP

tolist all files in the C:\TEMP folder.  If you want to drill down into subfolders too then do:

DIR /S /B C:\TEMP

~bp
0
 

Author Comment

by:agbnielsen
ID: 34994164
Wow. Couldn't have been more spot on there. Beautiful.
0
 
LVL 53

Expert Comment

by:Bill Prew
ID: 34994178
Great, glad that helped.

~bp
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Learn about cloud computing and its benefits for small business owners.
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question