The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
39 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
44 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
77 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
122 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
60 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
170 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
92 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
387 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
51 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
49 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 ...
4
votes
4answers
5k 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
546 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
2k 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
698 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 ...
2
votes
2answers
1k 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
558 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
3answers
2k 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
6k 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 ...
0
votes
1answer
755 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
844 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
108 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 ...
2
votes
2answers
2k 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
1k 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
208 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
483 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
414 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
67 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
2k 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
222 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
346 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
1answer
809 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 ...
8
votes
4answers
2k 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
2k 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
3answers
185 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 ...
4
votes
6answers
417 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
2k 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 ...