Get a List of Filenames from Windows Directory into Excel

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ม.ค. 2025

ความคิดเห็น • 115

  • @4ninesfine
    @4ninesfine 4 ปีที่แล้ว +1

    There are not enough likes in this video. This is SO helpful. I've had this video bookmarked for years.

    • @DougHExcel
      @DougHExcel  4 ปีที่แล้ว

      Thanks so much for the kind words!

  • @singtracks
    @singtracks 8 ปีที่แล้ว +9

    wow at last ,,,a clear concise easy to follow vid without silly background music..
    why cant all how to vids be like this....brilliant

    • @DougHExcel
      @DougHExcel  8 ปีที่แล้ว

      Thanks for the comment!

  • @JudeBarak
    @JudeBarak 9 ปีที่แล้ว +4

    Hi Doug,
    Thanks for another great tip.
    Another work around (I think it is simpler): Copy the folder address into the web browser address bar and hit enter. You get a linked list of all the files. Copy & paste into excel. Remove the unnecessary data.

    • @brianxyz
      @brianxyz 8 ปีที่แล้ว +1

      When I do this using IE11 all that happens is that another Windows Explorer window opens and I'm back to the same point that Doug started off at in his video.

    • @MEZHGANO
      @MEZHGANO 4 ปีที่แล้ว

      That's a real trick, thanks

  • @tstfhayden
    @tstfhayden 6 ปีที่แล้ว +3

    Thanks ! You saved hours of my life when my only option looked like typing out a list by hand ...

  • @1gopalakrishnarao
    @1gopalakrishnarao 9 ปีที่แล้ว

    Thanks for helping to view the files with cmd. remembering the olden days with CD , MD, and del. Thank you once again very useful tip.

  • @SJQuirke
    @SJQuirke 6 ปีที่แล้ว +1

    Nice one Doug - I liked how nice and clear this was - thanks a stack man - I am NOT a cmd user and I got it - so... kudos to you

    • @DougHExcel
      @DougHExcel  6 ปีที่แล้ว

      Hi Stephen Quirke, glad you liked it, thanks for commenting!

    • @SJQuirke
      @SJQuirke 6 ปีที่แล้ว

      @@DougHExcel Hey man - Oh cool nice to hear from you - I got it right with my updated file - I have 450 paintings I want to put in my spread sheet - big saver

    • @DougHExcel
      @DougHExcel  6 ปีที่แล้ว

      If you do this on a recurring basis, u might want to try power query th-cam.com/video/F1jMeWA4Law/w-d-xo.html

  • @36625366366
    @36625366366 5 ปีที่แล้ว

    Always wanted to do this but never knew how. Thanks a bunch, Doug!

    • @DougHExcel
      @DougHExcel  5 ปีที่แล้ว

      You're welcome. There's even a better way to do this with Power Query th-cam.com/video/F1jMeWA4Law/w-d-xo.html

  • @excelisfun
    @excelisfun 9 ปีที่แล้ว

    Old School, for sure!

  • @Wag2112
    @Wag2112 5 ปีที่แล้ว

    good vid, I did a lot of stuff with Access back in the day , haven't touched it in years :)

    • @DougHExcel
      @DougHExcel  5 ปีที่แล้ว

      Hi Wag2112, thanks for the comment!

  • @siblings_kitchen9336
    @siblings_kitchen9336 4 ปีที่แล้ว

    Really useful. Appreciate it.

    • @DougHExcel
      @DougHExcel  4 ปีที่แล้ว

      Glad it was helpful!

  • @loginid7108
    @loginid7108 7 ปีที่แล้ว

    Thank you so much. This is useful incase you wanna keep a track of files you lost after some data corruption !

    • @DougHExcel
      @DougHExcel  7 ปีที่แล้ว

      Hi Dev S, glad you liked it, thanks for commenting!

  • @HisNameIsGreatest
    @HisNameIsGreatest 7 ปีที่แล้ว

    i cant tell you how much this helped. i subscribed and liked the viodeo for your help. god bless you!

    • @DougHExcel
      @DougHExcel  7 ปีที่แล้ว

      Thanks HisNameIs Greatest, glad it helped!

  • @curtishargreaves6990
    @curtishargreaves6990 4 ปีที่แล้ว

    Nice, that was easy!

    • @DougHExcel
      @DougHExcel  4 ปีที่แล้ว

      Hi Curtis Hargreaves, thanks for the comment!

  • @silvanaweinaug7086
    @silvanaweinaug7086 5 ปีที่แล้ว

    What software are you using to create that image with the rough edges?

  • @MySpreadsheetLab
    @MySpreadsheetLab 9 ปีที่แล้ว +3

    That is cool Thanks Doug!

  • @MattBookbinder
    @MattBookbinder 6 ปีที่แล้ว

    how would you ommit the file format in the imported text (.txt , .mp3) or choose to only import a curtain file type?
    very helpful video by the way... THANKS

    • @DougHExcel
      @DougHExcel  6 ปีที่แล้ว

      You may want to try using power query. See this video th-cam.com/video/F1jMeWA4Law/w-d-xo.html

    • @MattBookbinder
      @MattBookbinder 6 ปีที่แล้ว

      Doug H 9 thanks

  • @MEZHGANO
    @MEZHGANO 4 ปีที่แล้ว

    Holy shit, thanks for such easy old school trick.
    I spend the whole day searching how to achieve this by python scripts or VBA macros...

  • @sandeepkothari5000
    @sandeepkothari5000 6 ปีที่แล้ว

    Back to school. Great!

    • @DougHExcel
      @DougHExcel  6 ปีที่แล้ว

      Hi Sandeep Kothari, thanks for the comment!

  • @JuhoLeeChannel
    @JuhoLeeChannel 6 ปีที่แล้ว +1

    there is a faster method
    highlight the files and right click on one of them while pressing shift down
    this gives you the 'copy as path' option
    copy the paths and paste it in the spreadsheet
    use formula to extract file names

    • @mpetersburg
      @mpetersburg 6 ปีที่แล้ว

      Thank you, much easier, but Doug thanks too

    • @DougHExcel
      @DougHExcel  4 ปีที่แล้ว

      Hi Juho Lee, thanks for the comment!

  • @PlayRiteProductions
    @PlayRiteProductions 6 ปีที่แล้ว +2

    God Bless man, this is a life saver!

  • @paulacook6310
    @paulacook6310 8 ปีที่แล้ว

    Great video. Thank you!

    • @DougHExcel
      @DougHExcel  8 ปีที่แล้ว

      Thanks for the comment!

  • @cirillparno2770
    @cirillparno2770 5 ปีที่แล้ว

    Perfect! Thanks!👌

    • @DougHExcel
      @DougHExcel  5 ปีที่แล้ว

      Hi Cirill Parnó, thanks for the comment!

  • @ikrammahmood2484
    @ikrammahmood2484 6 ปีที่แล้ว

    Thank you Dough, it saved my time a lot :)

    • @DougHExcel
      @DougHExcel  6 ปีที่แล้ว

      Hi Ikram Mahmood, glad you liked it, thanks for commenting!

  • @federicoguglielmino3429
    @federicoguglielmino3429 6 ปีที่แล้ว

    awesome! thanks Doug

    • @DougHExcel
      @DougHExcel  6 ปีที่แล้ว

      Hi Federico guglielmino, glad you liked it, thanks for commenting!

  • @Imraankhan21
    @Imraankhan21 5 ปีที่แล้ว

    thank you this video was really Helpful

    • @DougHExcel
      @DougHExcel  5 ปีที่แล้ว

      Thanks +Imraan khan, glad it helped!

    • @DougHExcel
      @DougHExcel  5 ปีที่แล้ว +1

      Thanks +Imraan khan, glad it helped!

    • @DougHExcel
      @DougHExcel  5 ปีที่แล้ว +1

      Thanks +Imraan khan, glad it helped!

    • @DougHExcel
      @DougHExcel  5 ปีที่แล้ว

      Thanks +Imraan khan, glad it helped!

    • @DougHExcel
      @DougHExcel  5 ปีที่แล้ว

      Thanks +Imraan khan, glad it helped!

  • @LiquidSnake1988
    @LiquidSnake1988 7 ปีที่แล้ว

    what about subfolders and their content?
    I have bunch of files inside several folders? I wanted to get their date info so I can easily sort it out in excel.

    • @DougHExcel
      @DougHExcel  4 ปีที่แล้ว

      maybe Power Query can help th-cam.com/video/F1jMeWA4Law/w-d-xo.html

  • @videogamevlogs3765
    @videogamevlogs3765 6 ปีที่แล้ว

    Great video. Thank you.

    • @DougHExcel
      @DougHExcel  6 ปีที่แล้ว

      You're welcome. If you do this exercise often, Power Query is another way to do it and faster too -> th-cam.com/video/F1jMeWA4Law/w-d-xo.html

  • @johnsonpatrick320
    @johnsonpatrick320 6 ปีที่แล้ว

    Helped alot ! Many Thanks :)

  • @vinodkumarasamy
    @vinodkumarasamy 6 ปีที่แล้ว

    Awesome you saved my time, great thanks a lot

    • @DougHExcel
      @DougHExcel  6 ปีที่แล้ว

      Hi Vinod K, glad you liked it, thanks for commenting!

  • @mohammadkhalilajmal993
    @mohammadkhalilajmal993 3 ปีที่แล้ว

    how to go back in previous folder?

  • @jamesmacintosh5293
    @jamesmacintosh5293 8 ปีที่แล้ว

    Excellent tutorial. Thanks a lot. But I have a slightly different issue to deal with. I have more than 1000 files in a single folder, they are all images transferred from my mobile phones. They are named image 1.jpg, image 2.jpg and so on. There is an intentional space in the names of these images/files. When I followed your tutorial everything went fine except the fact that while using delimiters I chose two Tab and Space and the final result was - all the filenames were divided into 2 separate columns, ie "image" (in one column) and "1.jpg" in another column. I want it to be one column only ie "image 1.jpg", I know that the intentional space within the filenames is causing this problem, but how do I deal with this? Thanks a lot.

    • @jamesmacintosh5293
      @jamesmacintosh5293 8 ปีที่แล้ว

      Great, thanks a lot.

    • @DougHExcel
      @DougHExcel  4 ปีที่แล้ว

      Hi james macintosh, thanks for the comment!

  • @prasad0609
    @prasad0609 9 ปีที่แล้ว +2

    open note pad copy this dir /o /b /s >name.csv and save as name.bat , run it your directory ...that's it

  • @ahmedalmoaber8952
    @ahmedalmoaber8952 6 ปีที่แล้ว

    Thank you Sir!!!

    • @DougHExcel
      @DougHExcel  6 ปีที่แล้ว

      You’re welcome!

  • @arichardson821
    @arichardson821 6 ปีที่แล้ว +1

    There is a faster method - after selecting the images in a folder, try the "copy path" function within the clipboard ribbon/tab in Excel.

    • @DougHExcel
      @DougHExcel  6 ปีที่แล้ว

      Thanks for adding the knowledge!

  • @mattquigley6842
    @mattquigley6842 5 ปีที่แล้ว

    Thank You!!!!

  • @worried2727
    @worried2727 6 ปีที่แล้ว

    awesome thank you!

  • @404notfoundXx-m5k
    @404notfoundXx-m5k 6 ปีที่แล้ว +1

    in windows 10 you can copy and paste from CMD directly just highlight and copy paste

    • @DougHExcel
      @DougHExcel  6 ปีที่แล้ว

      Hi fpet1, thanks for adding to the thread!

  • @gewe2508
    @gewe2508 5 ปีที่แล้ว +1

    If you just need the name "Shift right-click" in the explorer and select copy path, then paste inExcel

    • @DougHExcel
      @DougHExcel  5 ปีที่แล้ว

      Hi Günther Wagner, thanks for adding to the thread!

  • @henryjohns
    @henryjohns 6 ปีที่แล้ว

    perfect deal. It worked well.

    • @DougHExcel
      @DougHExcel  6 ปีที่แล้ว

      Hi Henry johns, thanks for the comment!

  • @DmNetworks
    @DmNetworks 7 ปีที่แล้ว

    I can't find, how to delete the extension, and how to arrange by date

    • @mgc26133
      @mgc26133 7 ปีที่แล้ว +1

      to delete the extension, hit Ctrl+H. a window opens. enter 'extension' to "Find what", leave "Replace with" blank.
      you can use the Sort option to arrange by date.

    • @DougHExcel
      @DougHExcel  4 ปีที่แล้ว

      Hi Axel Schultz, thanks for the comment

  • @protide31
    @protide31 7 ปีที่แล้ว

    Merci beaucoup.

  • @Know-How-Now
    @Know-How-Now 7 ปีที่แล้ว

    Thanks Doug. I'm having a dos flashback.

    • @DougHExcel
      @DougHExcel  7 ปีที่แล้ว

      You're Welcome! I'll have a video out later this month that covers how to do this but using a feature in Excel without going into CMD mode. Stay tuned!

  • @kov40
    @kov40 7 ปีที่แล้ว

    thaaaaaank yooooouuuu!!!

  • @shivamkumar001
    @shivamkumar001 6 ปีที่แล้ว

    how to extract other information like date, authors, size, etc

    • @DougHExcel
      @DougHExcel  6 ปีที่แล้ว

      Try using power query for this th-cam.com/video/F1jMeWA4Law/w-d-xo.html

  • @sandeepkothari5000
    @sandeepkothari5000 6 ปีที่แล้ว

    Make more such presentations using Ms DOS.

    • @DougHExcel
      @DougHExcel  4 ปีที่แล้ว

      Hi Sandeep Kothari, thanks for the comment!

  • @Jesuscuratodos
    @Jesuscuratodos 2 ปีที่แล้ว

    press shift + right click and now thers a option to copy the path. Right click and Paste in a excel file and cut the unnecessary information.

    • @DougHExcel
      @DougHExcel  2 ปีที่แล้ว

      Power Query is prolly now a better option th-cam.com/video/F1jMeWA4Law/w-d-xo.html

  • @sumthingwong9182
    @sumthingwong9182 5 ปีที่แล้ว

    use “dos dir” have Problem,if the file have “&” not use “dir”。
    For example :APPLE &YE
    will error 。
    use export.bat↓
    c:/
    CD/window/tee
    dir >test.txt or test.xls
    but
    d:/
    cd/APPLE &YE
    dir >test.txt or test.xls
    must ERROR

    • @DougHExcel
      @DougHExcel  5 ปีที่แล้ว

      See if Power Query works
      th-cam.com/video/F1jMeWA4Law/w-d-xo.html

  • @alexc.9214
    @alexc.9214 6 ปีที่แล้ว

    But if you want to do it a quick way: Select files in win explorer, Home/Copy as Path, paste in Excel, Ctrl + H for Find & Replace, put *\ in find, Replace All = you have only the file names (with extensions, if your folder settings are such)

    • @DougHExcel
      @DougHExcel  6 ปีที่แล้ว

      thanks for adding to the thread!

  • @singtracks
    @singtracks 8 ปีที่แล้ว

    and it works bingo thumbs up

  • @rubenmoerbeek9647
    @rubenmoerbeek9647 5 ปีที่แล้ว

    You can get rid of the redundant information by adding an option. The cmd command would look like this: dir *.* >contents.tx /b /on
    The /b option means "bare format",
    The /on option sorts the result, it means "order" "name"
    You can find all options by typing [dir /?] (without the square brackets).
    These options saves you a lot of manipulation of the data. You can open the text file and then copy paste the result, instead of importing and choosing the formatting, which I think is very annoying.

    • @DougHExcel
      @DougHExcel  5 ปีที่แล้ว

      Hi Ruben Moerbeek, thanks for adding to the thread!

  • @drembaby3195
    @drembaby3195 7 ปีที่แล้ว

    Super

    • @DougHExcel
      @DougHExcel  7 ปีที่แล้ว

      Thanks Dr Embaby!

  • @gadamsettisrimanikanta
    @gadamsettisrimanikanta 7 ปีที่แล้ว

    how to copy file names from past few minutes?

    • @DougHExcel
      @DougHExcel  4 ปีที่แล้ว

      If you have Power Query, it's another great tool to perform this. See th-cam.com/video/F1jMeWA4Law/w-d-xo.html

  • @johnhopstick3962
    @johnhopstick3962 6 ปีที่แล้ว

    Use dir /b file*

    • @DougHExcel
      @DougHExcel  4 ปีที่แล้ว

      Hi John Hopstick, thanks for the comment

  • @cfitz17
    @cfitz17 4 ปีที่แล้ว

    helpful thanks!