Windows 10: "dir/s/b" Command Prompt not picking-up all the files in a directory.

Discus and support "dir/s/b" Command Prompt not picking-up all the files in a directory. in Windows 10 Software and Apps to solve the problem; I'm using the command in Command Prompt that goes "[a directory] > dir/s/b > [to a text-file]". When applying this to certain folders in the Windows... Discussion in 'Windows 10 Software and Apps' started by galen_burnett_7, Mar 1, 2024.

  1. "dir/s/b" Command Prompt not picking-up all the files in a directory.


    I'm using the command in Command Prompt that goes "[a directory] > dir/s/b > [to a text-file]". When applying this to certain folders in the Windows OS—"C:\Users\Administrator\""C:\ProgramData\Packages\""C:\Windows\ServiceState\"in particular—it doesn't manage to get the file-paths for some of the files. There will be a discrepancy between the file-folder total in the folder's Properties and the number of entries exported by that Command Prompt command. I notice that in the case of "C:\Windows\ServiceState\" many of the missing entries are for files with the ".cache" file-extension.=====

    :)
     
    galen_burnett_7, Mar 1, 2024
    #1
  2. Squirrely Win User

    Gathering Names Of Multiple Files

    Try this snippit in a batch file:

    You have to specify where to go with the batch file, which is what the cd command is for. Then, once the prompt is in that directory, the last command lists all of the files (including directories) in the list_of_files.txt text file, since dir is a command, not the directory location. *Smile "dir/s/b" Command Prompt not picking-up all the files in a directory. :)

    Edit: Also, if your directory has spaces, you may have to put the directory in quotes, such as:

     
    Squirrely, Mar 1, 2024
    #2
  3. CarolF_1 Win User
    DIR Command

    dir /A"dir/s/b" Command Prompt not picking-up all the files in a directory. :D /B /S > FolderList.txt produces a list of all directories and subdirectories of a directory.

    I would like to modify this line to have the date included for all directories and subdirectories of a directory too.
     
    CarolF_1, Mar 1, 2024
    #3
  4. "dir/s/b" Command Prompt not picking-up all the files in a directory.

    Unable to create Command Prompt output like I have done before regarding the Dir command

    Since I am retired and enjoying my life at home with my wife, she has not one complaint with me working on my home Projects for our home. I haven't swayed away from enjoying being on this PC even here at home. I Love it!!!!

    This output below is what I am talking about regarding this list. I cannot confirm this was created with a Command Prompt Dir command or with PowerShell. I have been trying to duplicate this in both Command Prompt and PowerShell without success. I used to
    be quite proficient with both methods however after a long period of time of illness (Not related to COVID-19), I have seemed to not have this information stored away to recall it back.

    I you are able to assist me with this, I will greatly appreciate having as many eyes taking a look at this issue with Batch Command Prompt and/or PowerShell

    Thank you, Charles

    List of Folders on this PC

    Volume in drive C has no label.

    Volume Serial Number is C82F-2793



    Directory of c:\users\charles

    Directory of c:\users\charles\.vscode

    Directory of c:\users\charles\.vscode\extensions

    Directory of c:\users\charles\3D Objects

    Directory of c:\users\charles\AppData

    Directory of c:\users\charles\AppData\Local

    Once I was at the level of creating the above file, my next step is to include all the files within the folder. If you can provide this coding I would greatly appreciate this also.
     
    CharlesLarimer, Mar 1, 2024
    #4
Thema:

"dir/s/b" Command Prompt not picking-up all the files in a directory.

Loading...
  1. "dir/s/b" Command Prompt not picking-up all the files in a directory. - Similar Threads - dir Command Prompt

  2. "dir/s/b" Command Prompt not picking-up all the files in a directory.

    in Windows 10 Gaming
    "dir/s/b" Command Prompt not picking-up all the files in a directory.: I'm using the command in Command Prompt that goes "[a directory] > dir/s/b > [to a text-file]". When applying this to certain folders in the Windows OS—"C:\Users\Administrator\""C:\ProgramData\Packages\""C:\Windows\ServiceState\"in particular—it doesn't manage to get the...
  3. DIR Command

    in Windows 10 Gaming
    DIR Command: dir /A:D /B /S > FolderList.txt produces a list of all directories and subdirectories of a directory. I would like to modify this line to have the date included for all directories and subdirectories of a directory too....
  4. DIR Command

    in Windows 10 Software and Apps
    DIR Command: dir /A:D /B /S > FolderList.txt produces a list of all directories and subdirectories of a directory. I would like to modify this line to have the date included for all directories and subdirectories of a directory too....
  5. command "dir \s \b" in Windows 10 cmd gives me "File Not Found" error

    in Windows 10 Gaming
    command "dir \s \b" in Windows 10 cmd gives me "File Not Found" error: It is very strange that this file exists, even I copy and paste its address in run and the file openshttps://i.postimg.cc/j2RNkrrx/screenshot-32.png...
  6. command "dir \s \b" in Windows 10 cmd gives me "File Not Found" error

    in Windows 10 Software and Apps
    command "dir \s \b" in Windows 10 cmd gives me "File Not Found" error: It is very strange that this file exists, even I copy and paste its address in run and the file openshttps://i.postimg.cc/j2RNkrrx/screenshot-32.png...
  7. command "dir \s \b" in Windows 10 cmd gives me "File Not Found" error

    in Windows 10 Installation and Upgrade
    command "dir \s \b" in Windows 10 cmd gives me "File Not Found" error: It is very strange that this file exists, even I copy and paste its address in run and the file openshttps://i.postimg.cc/j2RNkrrx/screenshot-32.png...
  8. DIR commands

    in Windows 10 Ask Insider
    DIR commands: So recently I used the DIR commands to be able to see hidden and Invisible files, is there any way to revert this? submitted by /u/Creeper_King_558 [link] [comments] https://www.reddit.com/r/Windows10/comments/inyfq2/dir_commands/
  9. DOS Dir Command issues-dir *. /s doesn't get all subfolders?

    in Windows 10 Software and Apps
    DOS Dir Command issues-dir *. /s doesn't get all subfolders?: I am trying to get an accurate picture of my music library, where all music is stored in album subfolders under artist folders. I opened a CMD window and at "E:\My Music\" prompt, typed: "dir *. /s" >dir.txt" in order to generate a text file of all folders and subfolders...
  10. command line to copy files from dir A to B but skip existing ones

    in Windows 10 Support
    command line to copy files from dir A to B but skip existing ones: Hi there Is there a Windows command that can copy files from say directory A to directory B but skip any with the same name I don't want to update even if say directory A has a newer version than directory B --simply use existing names --if it exists skip. I'm trying to...