Answers for "dos dir"

0

msdos dir for subdirectories

# Windows - cmd specific

# syntax 
dir /s <search-string>

# example (to find any files/folders with names containing "hoto", like Photo)
dir /s *hoto*
Posted by: Guest on April-22-2020
0

windows terminal dir sort by date

dir /OD
Posted by: Guest on April-27-2020
0

ms dos dir syntax with switches

dir [<Drive>:][<Path>][<FileName>] [...] [/p] [/q] [/w] [/d] [/a[[:]<Attributes>]][/o[[:]<SortOrder>]] [/t[[:]<TimeField>]] [/s] [/b] [/l] [/n] [/x] [/c] [/4]
Posted by: Guest on March-17-2020
9

dos dir

dir *.txt *.doc		# filter by extension (both doc and txt)
dir	/a:-d			# files only (no subfolders)
dir /s				# current directory and subfolders content
dir /s /a:-d		# files only (including subfolders)
dir > myfile.txt	# stored in myfile.txt (dir /s > myfile.txt with subfolders)
dir /o:[sortorder] 	# example:  dir /o:-s    (sort by decreasing size)
  N : By name (alphabetic).
  S : By size (smallest first).
  E : By extension (alphabetic).
  D : By date/time (oldest first).
  - : Prefix to reverse order.
Posted by: Guest on May-26-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language