All Questions
46
questions
1
vote
1
answer
310
views
How to get last modification date timestamp in "DIR /S /B" result?
In the early days of Windows (3.1, Windows 95) there was a wonderful feature, called "Find", which could be used for finding files on your computer.
Some *** has decided to remove this ...
1
vote
2
answers
188
views
Show only folder name with the link information via Windows DIR
How can I get only folder and its symbolic link information output via dir?
What I want is this, where CNET and projects are symbolic links:
CNET [\\192.168.1.10\CNET]
elements
localized
projects [\\...
1
vote
2
answers
500
views
Powershell equivalent of "dir /a"?
Running dir /a on a given directory on one of our servers produces a list of unexpected files that look like malware:
C:\Users\<username>dir /a c:\Users\Public\Downloads\
Volume in drive C has ...
0
votes
0
answers
150
views
What does [...] mean for Reparse Point Target when dir /al is executed
When I execute dir \al (Attribute: Reparse Points), I get a result that lists reparse points. The following output is easy enough to understand with columns being Date Modified, Time Modified, Dir ...
3
votes
2
answers
7k
views
What's the easiest way to map "ls" to the "dir" command in Windows? [duplicate]
I've found a few posts on command line aliases in Windows but most of them relate to aliasing long cd commands/paths that are frequently used and I can't make them work for my needs.
In my case, I ...
1
vote
2
answers
2k
views
How to get the only the total files size from folders in windows commandline
How to get the only the total files size from folders dir in windows commandline
[self answered]
0
votes
2
answers
3k
views
List each subdirectory and the number of files within it using cmd.exe
I have several subdirectories that contain files, and I want to list each subdirectory and beside it the number of files (*.html specifically) within that subdirectory. For example, I am in "C:\...
0
votes
1
answer
2k
views
Can I get a list of media files duration using something like DIR?
I'm at folder Music, all right? and let's say I want to know the name and other attributes of every song in that directory, then I'll just open a terminal and go
dir > musicFiles.txt
but that ...
0
votes
2
answers
334
views
Windows cmd dir hogging CPU
I have a couple of these "Windows command Processor" (cmd) running a dir command and taking 10-15% CPU constantly, heating everything up and well hogging CPU.
I also see findstr running ...
1
vote
3
answers
6k
views
Windows command dir lists files with absolute path, relative path required
I would like to list all filesnames of all files with a specific extension in a directory structure and write this to a file. What I have reached:
dir /B /S *.ext > list.filenames
This gives me a ...
-2
votes
1
answer
188
views
How do I use the command line to search for multiple characters at the same time?
Write a DOS command to display all files on drive C: whose filenames are 7 characters long and begins with the letters CHAR.
5
votes
2
answers
3k
views
How can I output a list of filenames surrounded by quotation marks?
In Windows Command Prompt, I can use the dir command to output the names of all PNG files within a directory:
dir *.png /od /b > files.txt
file 1.png
file 2.png
...
However, the image files I am ...
9
votes
1
answer
220
views
Understanding why the DIR command behaves this way
Why does:
dir "test.txt "
dir test.txt.
dir "test.txt . . ."
all lists test.txt with no error on Windows prompt?
Are there any other suffix that are ignored by Windows?
(please note that I ...
0
votes
1
answer
361
views
Why would the DIR command not be working for the documents folder in CMD?
Why would it be that I can't list the contents of the documents directory, but it works for every other folder. It is behaving like I accessed the special folder "My Documents", but I didn't.
The ...
3
votes
2
answers
1k
views
DIR command that ignores files with multiple extensions
I have a directory containing a single .exe that I need to find using DIR. However, I also have files in the same directory that end in .vshost.exe.
I always end up with both files matched to my *.exe ...