Solved

Windows Commandline tool to list objects in a directory

Posted on 2011-02-27
3
313 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 56

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 56

Expert Comment

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

~bp
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
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…

623 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