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. The Lounge
  3. dir /B >files.txt

dir /B >files.txt

Scheduled Pinned Locked Moved The Lounge
pythoncomquestionlearning
30 Posts 15 Posters 3 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.
  • M Marc Clifton

    Seriously? In the world of self driving cars, AI stock brokers, and a fake White House, to get a listing of files in a folder I have to open a console window and do that? Marc

    Latest Article - Merkle Trees Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

    Z Offline
    Z Offline
    Z C M
    wrote on last edited by
    #20

    From Windows Explorer. Open the folder you which to copy your list of files from. Select all the files you want included. Hold down Shift and right click. Select Copy as path. I don't remember where I found this, but it will copy the list of files and their path to the clipboard. Once pasted into a text editor, or whatever, you will see something like this. "C:\Users\\Pictures\File1.gif" "C:\Users\\Pictures\File2.jpg" "C:\Users\\Pictures\File3.png" "C:\Users\\Pictures\File4.jpg" "C:\Users\\Pictures\File5.jpg" Note, this is not recursive. It will not dig into sub-folders. It will only copy the path of visible and selected files/folders. I also do not know if it will work with Windows 10.

    "...JavaScript could teach Dyson how to suck." -- Nagy Vilmos

    Richard DeemingR 1 Reply Last reply
    0
    • Z Z C M

      From Windows Explorer. Open the folder you which to copy your list of files from. Select all the files you want included. Hold down Shift and right click. Select Copy as path. I don't remember where I found this, but it will copy the list of files and their path to the clipboard. Once pasted into a text editor, or whatever, you will see something like this. "C:\Users\\Pictures\File1.gif" "C:\Users\\Pictures\File2.jpg" "C:\Users\\Pictures\File3.png" "C:\Users\\Pictures\File4.jpg" "C:\Users\\Pictures\File5.jpg" Note, this is not recursive. It will not dig into sub-folders. It will only copy the path of visible and selected files/folders. I also do not know if it will work with Windows 10.

      "...JavaScript could teach Dyson how to suck." -- Nagy Vilmos

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #21

      Z.C.M. wrote:

      I also do not know if it will work with Windows 10.

      Works for me. :thumbsup:


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        Vark111 wrote:

        10. Email fax digital photo to recipient

        FTFY!

        Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

        V Offline
        V Offline
        Vark111
        wrote on last edited by
        #22

        Dang, I knew there was one or two more absurd steps I could add. :)

        1 Reply Last reply
        0
        • M Marc Clifton

          Seriously? In the world of self driving cars, AI stock brokers, and a fake White House, to get a listing of files in a folder I have to open a console window and do that? Marc

          Latest Article - Merkle Trees Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

          raddevusR Offline
          raddevusR Offline
          raddevus
          wrote on last edited by
          #23

          I believe the problem is that you should be using MS Excel for this type of stuff. I'm pretty sure the Excel Database handles this properly. It will also allow you to turn the output into a web page which is perfect for emailing to your friends. :laugh:

          M 1 Reply Last reply
          0
          • raddevusR raddevus

            I believe the problem is that you should be using MS Excel for this type of stuff. I'm pretty sure the Excel Database handles this properly. It will also allow you to turn the output into a web page which is perfect for emailing to your friends. :laugh:

            M Offline
            M Offline
            Marc Clifton
            wrote on last edited by
            #24

            raddevus wrote:

            I believe the problem is that you should be using MS Excel for this type of stuff.

            So, Lotus Notes isn't recommended? ;) Marc

            Latest Article - Merkle Trees Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

            1 Reply Last reply
            0
            • P PIEBALDconsult

              "Use the right to for the right job." I use the command-line all day.

              M Offline
              M Offline
              Marc Clifton
              wrote on last edited by
              #25

              PIEBALDconsult wrote:

              I use the command-line all day.

              The CTO where I used to work would love you. ;) Marc

              Latest Article - Merkle Trees Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

              1 Reply Last reply
              0
              • L Lost User

                a.) Open your Directory in Windows Explorer b.) In the adress bar type e.g.

                dir | c:\windows\system32\clip

                or instead of dir, also tree or what else. This will pipe the Output to clipboard :) And in case sys32 is in the path it becomes also a little bit shorter command ;) Bruno [Edit] The basics for this I learned here at CP. What I remember is, it was also in the Lounge when somebody described that one can Launch cmd directly by the adress bar in the Windows Explorer. :-O [Edit 1] Finally I found the source: https://www.codeproject.com/Lounge.aspx?fid=1159&select=5367179&fr=5076#xx0xx posted by [virang_21 - Professional Profile](https://www.codeproject.com/script/Membership/View.aspx?mid=6555380)

                M Offline
                M Offline
                Marc Clifton
                wrote on last edited by
                #26

                0x01AA wrote:

                it was also in the Lounge when somebody described that one can Launch cmd directly by the adress bar in the Windows Explorer.

                Yes, I remember that and have started using it quite a bit! I think I missed the post on the "clip" thing though. Thanks for reposting! Marc

                Latest Article - Merkle Trees Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                1 Reply Last reply
                0
                • Richard DeemingR Richard Deeming

                  That doesn't seem to work from the Explorer address bar in Windows 10. It just opens the default browser and searches for "dir | c:\windows\system32\clip" - and to make matters worse, it searches with Bing! :doh: I guess I should be grateful that they're honouring my default browser, even if they're going to ignore my default search engine.


                  "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                  J Offline
                  J Offline
                  John M Drescher
                  wrote on last edited by
                  #27

                  For me it opened chrome.

                  John

                  1 Reply Last reply
                  0
                  • Richard DeemingR Richard Deeming

                    That doesn't seem to work from the Explorer address bar in Windows 10. It just opens the default browser and searches for "dir | c:\windows\system32\clip" - and to make matters worse, it searches with Bing! :doh: I guess I should be grateful that they're honouring my default browser, even if they're going to ignore my default search engine.


                    "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                    T Offline
                    T Offline
                    TonyManso
                    wrote on last edited by
                    #28

                    Richard Deeming wrote:

                    and to make matters worse, it searches with Bing!

                    Hey I love bing! Bing bribes me with xbox live subscriptions :-D

                    On the other hand, you have different fingers. - Steven Wright

                    1 Reply Last reply
                    0
                    • J Jochen Arndt

                      Using that you can't see what is listed. You have to use

                      dir /b >files.txt & type files.txt

                      instead :)

                      D Offline
                      D Offline
                      David Crow
                      wrote on last edited by
                      #29

                      dir /b | more

                      "One man's wage rise is another man's price increase." - Harold Wilson

                      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                      "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

                      1 Reply Last reply
                      0
                      • M Marc Clifton

                        Seriously? In the world of self driving cars, AI stock brokers, and a fake White House, to get a listing of files in a folder I have to open a console window and do that? Marc

                        Latest Article - Merkle Trees Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                        M Offline
                        M Offline
                        Mark_Wallace
                        wrote on last edited by
                        #30

                        0. Select some or all files 1. Shift+Right-click on one of the selected files 2. Select Copy as Path 3, Paste the list wherever you want it

                        I wanna be a eunuchs developer! Pass me a bread knife!

                        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