All Questions
46
questions
0
votes
0
answers
68
views
How can I easily open a command prompt in current folder with /u (set to unicode output)?
I'm trying to output directory and .txt file names using the following:
dir /b /s /a:d >> "filenames.txt"
dir /b /s *.txt >> "filenames.txt"
But some of the file and directory names use ...
0
votes
0
answers
653
views
Wildcard behavior in Windows DIR to show files in multiple subdirectories
I want to list files under both the Local and LocalLow directories under C:\Users\USERNAME\APPDATA but when I use the following command:
dir /s c:\users\me\appdata\Loca*
it only shows items ...
3
votes
1
answer
9k
views
How to not show file path with dir /b /s command in batch file
Is there Any way I can bypass displaying file paths when using the dir /b /s command into a file?
Currently, when I run dir /b /s C:\WinPE_amd64 >dir.txt it outputs something like this:
C:\...
4
votes
1
answer
5k
views
DIR shows file sizes in parentheses
On some server, I noticed that the CMD DIR command showed some file sizes between parentheses. What does that mean?
1
vote
2
answers
652
views
How do I search for non-hidden files in hidden subfolders using Windows Command Line
Looking through Google and super user stack exchange showed me how to search a folder and it's subfolder for hidden files
dir /A:H /S testHiddenFile*.txt
or hidden folders:
dir /A:HD /S testFolder
...
62
votes
5
answers
11k
views
Why does `dir *.*` give me all files and folders?
When I run dir *.* it produces unexpected results. Even files and folders without any dot in their names are listed. For example
C:\>dir *.*
Volume in drive C is System
Volume Serial Number is ...
1
vote
2
answers
616
views
How to run default dir command under FAR file manager?
I have Cygwin installed somewhere in the path. So I have
>where dir
D:\Users\Dims\Design\Cygwin64\bin\dir.exe
When I run DIR from CMD I get the normal Windows DIR:
>dir /?
Displays a list of ...
1
vote
0
answers
409
views
Windows DIR analogue of ls -v
In linux, ls -v returns a file list in a "natural sort" order -- that is, when the name has a numerical part, it is sorted as a number:
file1.txt
file2.txt
file11.txt
Is there a way to ...
1
vote
2
answers
2k
views
Listing folders in CMD which does NOT have a specific subfolder
I've an issue where i need to locate all folders on a drive which does NOT have a folder in them called "Arg".. I know how to do it in reverse using DIR, i.e to find all subfolder with a specific name,...
0
votes
1
answer
85
views
Windows DIR command searches folders it shouldn't
I'm trying to create a batch file that searches certain folders on our server for JPGs and creates a txt file with them. It works fine BUT for some reason it always adds a folder to the end of the ...
6
votes
2
answers
2k
views
How to make AppData directory appear in File Explorer?
This post outlines how to make the AppData directory show up at the DOS prompt, but how do I make it show up in File Explorer (on Windows 7 Home Premium 64-bit)? Is there a global setting? Also, what ...
5
votes
5
answers
8k
views
Copy file names with a certain number of characters in command line (CMD)
I need to copy all text files on one folder whose names are five characters long. I know this command is for listing:
$ dir folder /B | findstr /R "^.....\.txt"
but I want to copy all files whose ...
0
votes
1
answer
4k
views
Is there a Window's Command Line Option to Show the Sizes of Directories
When I do a dir command it, gives this information:
02/11/2015 01:39 PM <DIR> bar
11/11/2014 07:22 AM <DIR> buz
02/12/2015 01:35 PM 140,660,736 foo.sdf
01/...
15
votes
5
answers
131k
views
windows command line dir command: to display only the file name, in 8.3 format?
I know that "dir /w" or "dir /b" shows only the file name.
While "dir /x" or "dir /X" shows the 8.3 format, but together shows all other information like long format file names, dates and size.
is it ...
0
votes
1
answer
49
views
On Windows 7, how can I identify any folders that contain files that have not been updated in x years? [duplicate]
On Windows 7, how can I identify any folders that contain files that have not been updated in x years? I would like to clean up unused files/folders on network drives. Initially, I just need a list of ...