1.    17 Feb 2017 #1
    Join Date : Apr 2016
    Posts : 114
    Win 7,8.1 ,10

    DIR list to text list folders but not what is in them.

    Is there a way with DIR command line via CMD or power shell to list the contents of a directory but exclude the contents of the folders and generate a a bare list(location name only). Just list the files and folders?
      My ComputerSystem Spec
  2.    17 Feb 2017 #2
    Join Date : Aug 2014
    Forever West
    Posts : 3,922
    Win10 Home and Pro, Win10 Insider Preview, Win7 Home, Linux Mint

    In a Command Prompt window type dir /? [note the space] to get a list of switches you can use. I frequently use dir /o/s>dir.txt to get an Organized list of files and subFolders redirected to a dir.txt file in that Folder. Leave off the >dir.txt is only wanting a list on the screen but could use /p to pause it a screenful at a time.
      My ComputerSystem Spec
  3.    17 Feb 2017 #3
    Join Date : Oct 2014
    Posts : 920
    Windows 10 Pro

    Give this a shot, and obviously set your starting path to whichever directory you want.

    Get-ChildItem -Path C:\Windows\apppatch |Select-Object FullName
      My ComputerSystem Spec


Similar Threads
Thread Forum
Solved Window Icon on Task Bar Changed to Text List
The Window Icon, first icon on the taskbar is no longer graphical. Nothing happens when I left click on it. A right click brings up a long list including Programs and Features, Power Options, Event Viewer, System, etc.. I do not recall changing...
General Support
Looking for a list of MCC awardee list year 2010 and 2011
I wonder if anyone can provide me a link for MCC awardee list year 2010 and 2011. Thank you.
Chillout Room
Revo Uninstaller List Differs from Win10 Progs and Features List
I'm running Win10 Pro 64bit and Revo Uninstaller Pro v3.1.5. There is a huge discrepancy in the installed programs lists provided by Revo Uninstaller and the Win10 Programs and Features control panel. They both say there are 83 installs (that's...
Software and Apps
see folders in list mode
How do I set the view to be always in list mode ? It defaults to details mode and I'd like list mode. thanks :(
General Support
Can i separate quick access from explore list to taskbar pinned list?
it's really getting annoying that i can't see any of the recent used files list as i have too many pinned list, can i have a separate list for task bar pinned list and quick access list in explorer?
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 09:01.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App

Windows 10 Forums