Solved

Windows Commandline tool to list objects in a directory

Posted on 2011-02-27
3
272 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 51

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 51

Expert Comment

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

~bp
0

Featured Post

Promote certifications in your email signature

Has your company recently won an award or achieved a certification? They'll no doubt want to show it off. Email signature images used to promote certifications & awards can instantly establish credibility with a recipient and provide you with numerous benefits.

Join & Write a Comment

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now