The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
24 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
23 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
25 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
25 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 ...
0
votes
1answer
64 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
31 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
105 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
72 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
40 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
76 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
103 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
84 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
915 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
58 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
206 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 ...
1
vote
1answer
1k 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
112 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
231 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
114 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 ...
2
votes
3answers
8k 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
80 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
113 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 ...
6
votes
6answers
20k 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
2k 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 ...
1
vote
3answers
8k 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
2k 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
3k 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
1k 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: ...
3
votes
4answers
24k 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
853 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
157 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
4k 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
3k 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
289 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 ...
3
votes
2answers
1k 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
574 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
81 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?
6
votes
1answer
4k 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 ...
2
votes
4answers
471 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 ...
2
votes
2answers
1k views

Directory search in Windows Command Prompt shows incorrect output

I searched for the following and it gave me the exact output (folder names changed) C:\temp>dir *950*.pdf /s Volume in drive C has no label. Volume Serial Number is ABCDE Directory of ...
11
votes
4answers
7k 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
3answers
4k 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. ...
4
votes
6answers
624 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 ...
1
vote
5answers
5k 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 ...