Solved

Windows Commandline tool to list objects in a directory

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
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.
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

749 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