The tag has no usage guidance, but it has a tag wiki.

learn more… | top users | synonyms

0
votes
1answer
23 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 ...
0
votes
1answer
54 views

VBA in Excel 2013, Loop through files where the wildcard applies to the subdirectory

I have a MATLAB script that analyzes experimental results on a number of widgets my company makes, and finally exports the summarized data into a CSV file. I want to import all of these csv files into ...
0
votes
1answer
35 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 ...
0
votes
0answers
36 views

Different date stamps Explorer vs. from command line - Win7

I'm trying to create a simple batch file to match up 2 directories of files to resolve some issues between the 2 sets. This would be very easy to do if I could match them between directories based ...
4
votes
1answer
232 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
5answers
156 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
1answer
62 views

dir /s not returning ALL subdirectories

I need a list of all files and folders in a giant directory. This ends up being approximately 1000 folders and 20000 files. Being a command line noob, I started out just by doing "dir>file.txt" while ...
1
vote
2answers
58 views

Powershell: Dir /s - Remove Repeated Folders

Situation: In Powershell, I'm using: $folders = dir -s C:\Users\Name\Downloads\*.ttf | Select Directory foreach ($folder in $folders) { echo $folder } To display folders whose contents ...
0
votes
0answers
18 views

How Can Save list of files with DIR except Junctions? [duplicate]

HiDIR of windows CMDI want a LIST (shortname & date & size) of *.txt files (Hidden & System & ...) in win drive with DIR.BUT except junctions.Thank u.
0
votes
1answer
227 views

How to change CMD start directory [duplicate]

I want to change the CMD startup directory when I launch it via Start+R Currently, it points to my users folder. I need it to point to C:\Windows\System32\ When I navigate manually to ...
0
votes
1answer
72 views

How to stop DIR command counting “Thumbs.db”

We have a process that executes a DIR on multiple folders to check that the correct documents have been generated by another process. In each of the target directories we use this command: dir /A:-D ...
0
votes
1answer
150 views

Dir command not working on one UNC Share

We have a process that runs in SQL Server which executes a DIR command on the local network using a UNC path to check that the files generated by another system are all there, as part of an audit ...
0
votes
1answer
32 views

List files in cmd.exe numerically by default to generate a gif out of a sequence of frames

Greetings and Salutations All, I'm trying to create an animation using imagemagick via: convert -delay 80 -loop 0 *.png ani.gif The logic is finding all the .png files, except the file names are ...
0
votes
1answer
132 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 ...
6
votes
2answers
11k 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 ...
1
vote
1answer
713 views

Directory Listing includes Date Modified, File Size into text file/excel file

I wanna try listing an entire drive's (Z:) directories, subdirectories, and files in a single text file with all the dates and the file sizes. And then will open the .txt file on an Excel worksheet. ...
0
votes
1answer
31 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 ...
-2
votes
1answer
71 views

DOS command-line query returns too many results

Can anyone tell me why dir *.asp returns all .asp files but also all .aspx files? It seems dir ignores extensions longer than three. This is really bugging.
0
votes
1answer
35 views

How to find hard linked folders via programming

Is it possible to identify if a folder is actually a hard link created by mklink? I want to get folders and subsequent sub-folders. But hard linked folders drops me into a loop.
0
votes
2answers
37 views

Command line to search for all word files using wildcards in filename

How can I find all files that have a name like ALPS*.doc in a folder like P:\Systems\A.L.P.S\? I tried this using the command line but it returns zero: Systems\A.L.P.S>dir /s /b c:\ |find /c ...
2
votes
2answers
3k views

How to view all the Symbolic links,Junction points,Hard links in a Folder using dir?

The command dir /a displays a list of all the files,folders in a given location. But it displays the type for Junction Points as well as Symbolic Links to Folders. Is there any command which will ...
0
votes
1answer
196 views

Dir command listing to show folder and file count, and directory size (no list)

I'm trying to get a basic count of a directory, but I do not want the result to list the names of the files contained in there. Basically, what I want would be the same as a Windows properties ...
0
votes
1answer
326 views

DIR /B /O:N > filename.txt but only showing folders without a certain file

Im trying to make a list in xp of folders which do not contain a ".jpg" file. I use this (DIR /B /O:N > filename.txt) for making a folder list, it works perfect, but now i need a list with the where ...
0
votes
2answers
201 views

Why does `rm -rf`` silently fail?

[EDIT] Please don't waste your time reading my question below. It turns out my colleague is an idiot.. :) On my server I'm trying to remove a folder and all its subfolders with the usual rm -rf ...
-1
votes
2answers
51 views

Find folders called SS, return size of folder

I am able to find all folders called "SS" (superseded) in a hierarchy and list out the location of each one. I have been using this code to pipe out the list. DIR /AD /B "SS" /S > SS_Folder_List.txt ...
0
votes
4answers
626 views

dir folders at a certain folder depth in a batch file

I want, with a batch file, to be able to search and display the files in a bunch of folders called "error" located in a bunch of different places. The error folder is always at the same folder depth ...
2
votes
3answers
160 views

Obtaining a list of files from a specific directory

Many thanks for the help but... Using Windows 7 x64 running command from a batch file in a particular folder I use many paq8/paq9 command line compressors to back up my files. Of these, many can't ...
0
votes
0answers
171 views

How can I list all files recursively that have the compressed attribute set?

I started a decompress operation using compact /U /S /I /Q > compact-report.txt on a large dir (120GB+, ~950M+ files) and it has been going on for about 24 hours now. Most files seem decompressed, ...
1
vote
0answers
42 views

I want the “apache” user to own a dir but other users are adding via WinSCP [duplicate]

This is a fairly simple problem to explain but it is really annoying me and I could do with some advice. How to I ensure that apache is user : group owner of a dir no matter who uploads to it.. the ...
2
votes
2answers
1k views

How can I use powershell to list all files I uploaded to server?

At work there's a network and everyone has a username and password that they use to log in. How can I search for my files on this network? I could list all the files like this: cd ...
2
votes
1answer
60 views

How can I create several folders?

How can I create several subfolders in folder in one command. For example, I want to create: /home/user/*create dir1*/*create dir2*/*create dir3*/ Provided, I don't have dir1. And I can't use 3 ...
0
votes
2answers
261 views

Windows Vista piping dir output into attrib command

I had a virus or something on my computer that set the attributes for all the folders in the root of my external drive to system and hidden, and created shortcuts to them. I am now trying to remove ...
2
votes
1answer
3k views

CMD Using DIR to order directories by name

I'm using the following command to list files including those in sub-directories ordered by name. dir /b/s/on The files are correctly ordered within their given directories but the directories are ...
0
votes
1answer
136 views

List files in CMD with DIR

I'm trying to use DIR to list all files in the current directory and sub directories ordered alphabetically. I only care about the filepath and name. I don't want the size, counts, etc. Here's what I ...
5
votes
8answers
263 views

DIR filenames that contain extensions

I was just trying to check a dump-directory for any ZIP programs like PeaZip, NanoZip, etc. and ran into an odd problem that I have seen only a few times before. I used the following command to list ...
2
votes
1answer
123 views

Why does “dir *.*~” list files in a way different to what is expected?

In my directory I have the files files x.dll x.lib x.pdb x.exp x.plugin When I issue the command dir \*.*~ it should say 'File not found' as it does at my friend's laptop. But on my machine it ...
5
votes
3answers
16k views

How to find the cumulative size of a directory

Is there a switch for the dir command which lists the size of a directory as well? This page says: Dir also displays the total number of files and directories listed, their cumulative size, and ...
0
votes
1answer
116 views

Default file order of “dir” command in Windows console

Just wondering how Windows determines file ordering when running a "dir" command (without any arguments) in a command prompt. I know you can explicitly specify an order, but just curious how ...
1
vote
1answer
134 views

NAS Drive Not Correctly Reporting Files, Directories from a DOS/Command prompt in WIN7

I have an NAS drive on my network, and it works just fine. I can access every file on it with WIN7. However, when I go to a command prompt and perform a directory command, the command reports 0 ...
8
votes
6answers
32k 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
3answers
3k 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 ...
4
votes
3answers
16k 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 ...
2
votes
1answer
6k 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 ...
3
votes
2answers
5k 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 ...
1
vote
2answers
2k 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: ...
9
votes
4answers
43k views

How do I recursively list filenames (only) in DOS/Windows? [duplicate]

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 ...
13
votes
3answers
864 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
177 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 ...
4
votes
2answers
6k 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
2answers
4k 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 ...