CJSmith dot me

I dump stuff I find useful here

Generate a text file with subfolders in a location on explorer

On

20/01/2018

By

Chris Smith

In

Batch File Scripting

I needed to generate a list of folders and their subfolders, I used a simple command for dir command and slapped into a text file.
Below replaced with the folder you want to get the list from (i.e C:\Users\Default) and replace with where you want to save a textfile (i.e C:\textfile.txt).

dir /b /s /a:d "<Location>\*" > <TextFile>

Credit: SS64

Categories

  • Access 2010
  • Batch File Scripting
  • Business Objects
  • Cindercone Magma
  • Cisco Unity Communications
  • Datalinx WHM
  • FolderMill
  • Georgia Universal Terminal Server
  • IBM Domino 8.0
  • IBM Notes 8.0
  • Lotus Domino 6.0
  • Microsoft Office
  • Old Stuff
  • Outlook 2010
  • Sage Line 500 ERP
  • SQL Server
  • SQL Server 2008
  • SQL Server 2008 Express
  • SQL Server 2012
  • Syncplify.me Server!
  • SyncToy 2.1
  • Uncategorized
  • V1 DBForms
  • V1 Document Management
  • Visual Basic for Applications
  • Windows
  • Windows 10
  • Windows 7
  • Windows Server 2008
  • Windows Server 2012
  • Windows Server 2016
  • Word Press

Archives

  • June 2022
  • April 2022
  • August 2021
  • February 2021
  • January 2021
  • November 2020
  • October 2020
  • August 2020
  • June 2020
  • May 2020
  • February 2020
  • December 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • February 2019
  • January 2019
  • December 2018
  • October 2018
  • September 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • August 2017
  • July 2017
  • May 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016

CJSmith dot me


This site utilises the Charta block theme.


© 2022 CJSmith dot me