Solved

Windows Commandline tool to list objects in a directory

Posted on 2011-02-27
3
309 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 54

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 54

Expert Comment

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

~bp
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This article summaries thoughts and ideas from two years of sustained use. It provides good reasoning to make the jump to Windows 10.
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…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

710 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