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

  1.    17 Feb 2017 #1

    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. Posts : 4,610
    Win10 Home and Pro, Win10 Insider Preview, WinXP Home Premium, Linux Mint
       17 Feb 2017 #2

    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

    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


 

Related Threads
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...
I wonder if anyone can provide me a link for MCC awardee list year 2010 and 2011. Thank you.
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...
see folders in list mode in General Support
How do I set the view to be always in list mode ? It defaults to details mode and I'd like list mode. thanks :(
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 10:14.
Find Us