The dir tag has no wiki summary.
1
vote
3answers
72 views
how to list all files and directories in given directory with full path but not recursive?
Somehow like dir /b command but I need also hidden and system files there. Built in dir command doesn't allow to list such 'hidden' files with the rest and I must use /s to have full path in there, ...
2
votes
2answers
91 views
Displaying file names with a certain number of characters in command line
I need to list all text files on the C drive whose names are seven characters long. I tried the following command
DIR ???????.txt
However, this command displayed files with seven characters and ...
0
votes
3answers
129 views
Excluding files of particular extension using DIR command on windows command line
if i want to see e.g. files of a particular extension only using dir listing, i can do that using the command:
DIR *.txt
And it shows all files with .txt extension.
Now i want to know is there ...
1
vote
1answer
99 views
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 ...
1
vote
2answers
80 views
How to get a list of non read only files in Windows?
I need to find a way to get a list of all the Non Read Only files under a specific path on windows server 2003.
I tried the following command, but I also got all the directories which are non Read ...
0
votes
2answers
125 views
How do I get a fully qualified file list from a shared folder?
I'm attempting to get a list of files on a shared folder (with their complete path names)- for example, instead of
File1.txt
File2.txt
on \\sharename\foldername, I'm trying to get:
...
1
vote
2answers
133 views
How to check the count of .txt files in a folder (dir command)?
How can use dir command to check how many .txt files there is in a folder (e.g C:\Temp)?
2
votes
4answers
205 views
How do I recursively list filenames (only) in DOS/Windows? [closed]
Possible Duplicate:
Get bare file names recursively in command prompt
I would like to recursively list all files in a directory, showing filenames only (without extensions and without the ...
0
votes
1answer
264 views
Windows 7 Explorer and 'dir' command apparently have *super* hidden files?
I'm writing a little script to help deal with my music library. During development, I encountered some unexpected files in my readout in certain artist folders along the lines of AlbumArtSmall.jpg, ...
13
votes
3answers
828 views
Are the “.” and “..” entries in a dir listing always the same?
When would the "." and ".." entries in a dir listing differ? (I understand they represent two different directories, but they always list identically with the same date and time in a default dir ...
1
vote
1answer
62 views
Why do wildcards behave differently for different drives?
I'm using a Windows XP SP3 machine. My Z: drive is a mapped drive to a UNIX box.
There is a file called wk1_dailybackup_20110605043344.sql in both z:\archive and c:\archive.
At my CMD prompt from ...
1
vote
2answers
523 views
Why am I getting “File Not Found” when typing “dir” in the command prompt?
On my Windows XP machine, I type dir into the command prompt in a specific directory. It starts to list a bunch of files but then pauses and then shows File Not Found.
Does anyone know why that ...
1
vote
1answer
312 views
How to pipe Windows “dir” in ANSI codepage
This applies to both Windows XP and Windows 7.
Some of my files have names with European characters, for example the German a-umlaut, also known as a-diaeresis.
These are displayed correctly in ...
2
votes
4answers
153 views
How to cd to a newly created dir?
cd "$(mkdir -v "$(date -R)"|sed s+.`(.*)'.*)"
This is meant to create a dir named $(date -R). I could simply cd $(date -R), but the culprit is the date could change since the previous command was ...
2
votes
2answers
134 views
Change Default Sorting Order of 'dir' Command in Windows
By default, Windows' dir command sorts files and directories alphabetically without grouping. The result is files and directories appear interleaved with one another. Sample output:
F:\Dev ...
2
votes
1answer
209 views
Changing the order of columns displayed with `ls`
Is it possible to change the order of displayed columns when running ls -l on *nix (or dir on Windows)?
For example, I'd like to see the date modified, then the name, then other fields (or select ...
3
votes
1answer
46 views
list files with first char within specific range
I need to list all files that have first char within a specific range.
If I use Powershell I can do this with
gci [a-c]*
How can I do it from command line?
5
votes
1answer
573 views
Is it possible to pipe a list of files to RMDIR on Windows?
I am writing a batch file for the Windows command prompt to delete all directories matching a certain expression.
I am first using DIR to return a plain list of directories matching the expression. I ...
1
vote
2answers
174 views
Saving directory list to text file
I found out I need to use dir /s > filelist.txt to lookup a directory list, what I need is to rename the file to filelist/currentdate.txt, how do I do that?
EDIT: Guess I should have looked a bit ...
2
votes
3answers
223 views
WinXP dir command: 3 and 4 char extensions are the same?
I'm trying to recursively search a directory tree to find all of the .asp files using the following command:
dir *.asp /s
For some reason, this returns not only the asp files, but also the aspx ...
8
votes
4answers
617 views
Where are the standard Windows prompt commands files?
If I type dir in the command line, I guess it executes a dir.exe hidden somewhere in the system. Is there such a file? Where is it?
1
vote
2answers
1k views
On Windows 7, dir or tree can't show unicode characters, even starting cmd with cmd /U
On Windows 7, dir or tree can't show unicode characters, even starting cmd with cmd /U
So I would press Window Key + R to run something, and type in cmd /U so that the content might handle Unicode.
...
1
vote
1answer
102 views
On windows, how can I list files along with their created, modified and accessed dates?
The 'dir' command has a /T switch which selects whether to display the creation, access or modification time. However, it doesn't seem to be able to list files along with all three dates for each ...
3
votes
6answers
258 views
How can I get the “dir” and “copy” commands to operate on “*.xyz” but not “*.xyz~”?
When I use copy *.txt somefolder\ the system seems to copy all *.txt~ files too, which is not what I want. A similar same effect can be seen with dir:
C:\Users\Paul\Documents\Programs\Proffy>dir ...
0
votes
5answers
925 views
command-line / batch file to list all the jar files?
I want to list all the jar files in subdirectories of a specified path, on a Windows computer, along with the file size & times.
dir /s gives me too much information. dir /s *.jar sort of does ...