Need How to help in Win 10

Discussion in 'Technical' started by Benjamin A. Wood, Feb 5, 2019.


  1. I'm not a complete moron on a computer, but I am not that good ether. I want to be able to catalog my Digital library. Just make a listing that shows all the files in each of the directories and sub directories. Can anyone help? Its likely simple, But I don't know how.
     
  2. sec_monkey

    sec_monkey SM Security Administrator

    Code:
     ls --all  -l
    
    on ubuntu under native ubuntu or ubuntu under w10



    or run cmd, change to the directory then run

    Code:
    dir
    
    on windoze
     
    Brokor likes this.
  3. Merkun

    Merkun furious dreamer

    Go into "my documents" and create a folder (and subfolders as needed.) W10, as bad as it is, uses the same file structure as all previous W's.
     
    sec_monkey and Seawolf1090 like this.
  4. sec_monkey

    sec_monkey SM Security Administrator

    Code:
    ls --all -l -R
    
    plus ya want to add -R on ubuntu


    plus

    on windoze

    Code:
    dir/s
    
    the output from ls or dir can be sent to a file (y) (y)



    win originally used FAT on top of DOS

    win 95 OSR2 started using FAT32

    later versions of windoze switched to NTFS from win NT
     
    Last edited: Feb 5, 2019
    VisuTrac likes this.
  5. DarkLight

    DarkLight Live Long and Prosper - On Hiatus

    Actually, since you already said you are on Windows, another option is the tree command.

    Code:
    tree /f
    
    Output could/would look something like this:

    F:.
    ├───Books
    │ Sense and Sensibility - Jane Austen.mobi
    │ The Art of War - Sun Tzu.pdf
    │ The Wheel of Time - Robert Jordan.txt

    ├───Movies
    │ Back to the Future.mov
    │ Mad Max.m4v
    │ Star Wars - Episode IV - A New Hope.mpg

    └───Technical
    FM - 01.10.pdf
    FM - 01.11.pdf
    FM - 01.12.pdf
     
    3M-TA3, Brokor and sec_monkey like this.
  6. Brokor

    Brokor Live Free or Cry Moderator Site Supporter+++ Founding Member

    yoda1.
     
    3cyl, Dont, chelloveck and 3 others like this.
  7. Oltymer

    Oltymer Monkey++

    I hate Win 10 with a passion!
     
  8. VisuTrac

    VisuTrac Ваша мать носит военные ботинки Site Supporter+++

    just be aware, the scanning your entire hard drive could result in a really big file being generated.
    I tried it out with:
    dir /s >c:\temp\filelist.txt (I created a folder on my c drive called temp and then named the target file filelist.txt)
    on my system it was 110 MegaBytes in size.
    it also took about 3 minutes to complete.
     
    sec_monkey and DarkLight like this.
  9. DarkLight

    DarkLight Live Long and Prosper - On Hiatus

    And as much as you hate it, there are those that either don't (for whatever reason) or are "stuck with it" for work. Not a helpful addition to someone asking for assistance.

    For the record, I run Fedora Linux at home but have to have Windows 10 on my work machine (Surface).

    @Benjamin A. Wood - One other alternative, assuming you want this in a more "useful" output, is to use PowerShell to generate the list and output to a .csv file. You can then open the .csv in Excel (or LibreOffice Calc or some other spreadsheet software) and have columns of information.

    The following code, produces the following output. Replace "f:\test" and "f:\allfiles.csv" with your folder and desired output file.
    Code:
    get-childitem f:\test -recurse | select-object DirectoryName,Name | where { $_.DirectoryName -ne $NULL } | Export-CSV f:\allfiles.csv
    
    "DirectoryName","Name"
    "F:\test\Books","Sense and Sensibility - Jane Austen.mobi"
    "F:\test\Books","The Art of War - Sun Tzu.pdf"
    "F:\test\Books","The Wheel of Time - Robert Jordan.txt"
    "F:\test\Movies","Back to the Future.mov"
    "F:\test\Movies","Mad Max.m4v"
    "F:\test\Movies","Star Wars - Episode IV - A New Hope.mpg"
    "F:\test\Technical","All FMs.zip"
    "F:\test\Technical","FM - 01.10.pdf"
    "F:\test\Technical","FM - 01.11.pdf"
    "F:\test\Technical","FM - 01.12.pdf"

    Again, you open that in a spreadsheet and do whatever needs to be done...filter, search, whatever.
    You can add other columns to the "select-object" portion of the command:
    PSPath
    PSParentPath
    PSChildName
    PSDrive
    PSProvider
    PSIsContainer
    Mode
    VersionInfo
    BaseName
    Target
    LinkType
    Name
    Length
    DirectoryName
    Directory
    IsReadOnly
    Exists
    FullName
    Extension
    CreationTime
    CreationTimeUtc
    LastAccessTime
    LastAccessTimeUtc
    LastWriteTime
    LastWriteTimeUtc
    Attributes

    Most of those are self explanitory...you won't use any of the "PS" columns at the top though.
     
    sec_monkey likes this.
  10. LOL love it! Pic Stolen!
     
  11. Thank all for the help, much appreciated. Looks like the tree command was what I am looking for. Just need a list of Directories with file names listed under them. again Thank you.
     
    DarkLight likes this.
  12. Altoidfishfins

    Altoidfishfins Monkey+++ Site Supporter+

    Win 7 or Linux Mint 19
     
  13. Byte

    Byte Monkey+++

    If you're stuck with Windows, learn PowerShell. The old CMD shell is far outdated. PS is very powerful if you take the time to learn it. Its usefulness to a Window's user is on par with shells such as bash in linux. PS even has many bash commands already aliased so the ls command already works. Type alias to see a current list.

    As DL suggests, the tree command is great for looking at your file system with a visual aspect of its structure. Hit your start button and type powershell, use Windows PowerShell. (x86 is the 32 bit ver and works fine too) It'll look just like your CMD window but will be blue instead of black. You could use the ISE but it's going to look odd and present you with a bunch of info you don't need yet. Stick to the basic PowerShell to begin. Type tree | more and hit enter. The | is the pipe key and it the straight up icon just above your main enter key. You'll have to hold shift to access it. It sends the output of the preceding command the trailing command. You'll get a pretty structured display of your file system. Oh, at the bottom of each page it'll stop and show -- More -- (that's the more command that you piped the tree command's output to), hit the space to proceed through each page.

    Also per DL, linux is a great alternative to Winblows if you have the time, inclination, and option to switch! I can't at work but I run Win7 & 10 and several variants of linux at home. I'm just not nearly as savvy as some of these other blokes.

    Hopefully I'm not insulting your computer skills giving the play by play. Until I've interacted with you a bit, I can't be sure what you mean by your opening statement!

    Incredible PowerShell series. Shane is thorough and easy to follow.


     
    Last edited: Feb 14, 2019
survivalmonkey SSL seal        survivalmonkey.com warrant canary
17282WuJHksJ9798f34razfKbPATqTq9E7