Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. Windows Files to Text File

Windows Files to Text File

Scheduled Pinned Locked Moved System Admin
data-structures
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Grahamfff
    wrote on last edited by
    #1

    I would like to have a listing in a text file of all the files in a directory, including all sub-directories. I have been using:-

    dir c:\myDir /s >> myfiles.txt

    But are they any way you can get a tree type structure written to this file. Many thanks, Graham. grahamfff

    T L 2 Replies Last reply
    0
    • G Grahamfff

      I would like to have a listing in a text file of all the files in a directory, including all sub-directories. I have been using:-

      dir c:\myDir /s >> myfiles.txt

      But are they any way you can get a tree type structure written to this file. Many thanks, Graham. grahamfff

      T Offline
      T Offline
      Ted Ferenc
      wrote on last edited by
      #2

      try tree /?


      "An education isn't how much you have committed to memory, or even how much you know. It's being able to differentiate between what you do know and what you don't." - Anatole France

      1 Reply Last reply
      0
      • G Grahamfff

        I would like to have a listing in a text file of all the files in a directory, including all sub-directories. I have been using:-

        dir c:\myDir /s >> myfiles.txt

        But are they any way you can get a tree type structure written to this file. Many thanks, Graham. grahamfff

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Try to use this command: c:\tree foldername > textfilename.txt


        A thousand mile of journey, begin with the first step. APO-CEDC Save Children Norway-Cambodia Office

        G 1 Reply Last reply
        0
        • L Lost User

          Try to use this command: c:\tree foldername > textfilename.txt


          A thousand mile of journey, begin with the first step. APO-CEDC Save Children Norway-Cambodia Office

          G Offline
          G Offline
          Grahamfff
          wrote on last edited by
          #4

          Thanks, great command. Andy grahamfff

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups