About 50 results
Open links in new tab
  1. Command to list all files in a folder as well as sub-folders in windows

    Mar 11, 2015 · I tried searching for a command that could list all the file in a directory as well as subfolders using a command prompt command. I have read the help for "dir" command but coudn't …

  2. Windows Command Prompt: dir + what option shows only Directories …

    All / (switches) in Windows don't have any filter purposes. I know in Linux it is - (options). At a Windows command prompt, how can I show only Directories and not Files?

  3. Dir Command Not Showing all Folders - Stack Overflow

    Sep 23, 2014 · The dir command in the Windows command prompt did not display a folder named tmp when it did exist. But running the dir in Powershell did display the tmp folder. Why did the Windows …

  4. command line - What is the path to the `dir` program on Windows …

    Aug 17, 2022 · This question is interesting because normally I would use where.exe on Windows to find the path to a program on my path. However, where has an option dir, /r to recursively search a path. …

  5. List only files of a particular extension with the DIR command

    On Windows, we can see directory content using the DIR command. I want to know, how can one see the list of only those files which have particular extension, e.g I want to see list of all .txt f...

  6. windows - dir C: vs dir C:\ - Super User

    Dec 20, 2015 · 19 Specifying DIR location will show you the contents of the location. Specifying C: on many commands, including the DIR command, refers to the C drive, and refers to the current …

  7. Windows: List files and their permissions (access) in command line

    Jul 1, 2011 · In linux, ls -l lists files permissions, like this: -rw-r--r-- 1 user user 924 2011-07-01 20:23 test.txt In Windows, commands tree and dir don't have the options to list permissions. How is it

  8. How to do a simple file search in cmd - Stack Overflow

    dir /b/s *.txt The above command searches for all txt file in the directory tree. But as windows is started naming directories as .nuget,.vscode it also comes with the command above. In order to avoid this …

  9. How to set recursive depth for the Windows command DIR?

    Is it possible to limit the recursion depth of the command to 3 (for example)? c:\dir_1\dir_2\dir_3\dir_foo So I don't want to see the directory dir_foo if I execute the command in the above example in c:\>, …

  10. Windows 'dir' command, Order By Name AND <something>

    However, DIR did not since some of the numbers were single digits and some were double/triple digits. In my batch file, I combined the DOS FOR command with a call out to powershell using the answer …