Main Area and Open Discussion > General Software Discussion
Goodness! Is there NO Win utility to do "DIR /S/B C:\ZZZ\*.JPG > RESULT.TXT"?
rjbull:
In this case, I won't want to go back DOS unless I have no choice!
-tslim (January 07, 2007, 09:15 AM)
--- End quote ---
;)
Ordinary DOS can't see NTFS drive (yes I am aware of NTFSdos, which allow so), does not handle long file name (again I am aware of DOS way to make it does), can't see drive bigger than 2 Gig and so on and so....
Even though DOS is still better (than Windows) way to go when you want to do something "task orientated" rather than "object orientated"
--- End quote ---
I don't know about NTFS. Here's part of the help file for Charles Dye's file finder LOCATE:
/L Display Windows 95 Long filenames. This option will only work under
an operating system which provides the long-name API. It will work
in a DOS box under Windows 95, but not in Win95 DOS mode (MS-DOS 7.x.)
It will work with DR-DOS only if you have Caldera's long-filename TSR
installed.
This option only affects the display! Locate still searches for files
using the 8.3 DOS filenames. If you want to search for a specific long
filename, I recommend that you type only the first five letters, followed
by an asterisk: LOCATE BLUER* /L to find a file named "Blue Rivets.bmp".
(This file probably has a short filename of BLUERI~1.BMP, so BLUER* will
match it.) To find all the short "aliases" which refer to non-8.3
filenames, try LOCATE *~*
/O:"format" Macro Output. For each item found, Locate will print out the
string between quotes exactly as typed, except that certain
macros beginning with an ampersand (&) will be replaced.
macro what it displays width example
&F fully qualified filename - C:\DOS\DISKCOPY.COM
&D directory name, canonical - C:\DOS
&P directory name with \ - C:\DOS\
&N filename - DISKCOPY.COM
&R filename without extension - DISKCOPY
&X extension only - COM
&S filespec without drive - \DOS\DISKCOPY.COM
&L drive letter - C:
&G copy target, no drive - \DOS
&J right-padded with spaces 13 win.com
&A attributes, as for ATTRIB 11 +A -S -H -R
&B attribute bits 5 A....
&W Windows 95 long filename - "C:\Directory\Long Filename.html"
&Z long filename only, no path - "Long Filename.html"
&Y long directory name with \ - "C:\Directory\"
&V long filename base - Long Filename
&K long filename extension - html
&1 date stamp, local format 11 May 31 1994
&2 time stamp, local format 9 6:22:00a
&3 file size 10 13335
&4 day of the week 3 Tue
&5 pretty file size 13 13,335
&6 file size in KB or MB 9 13.02 K
&7 date stamp, ISO format 10 1994-05-31
&8 time stamp, 24-hour format 8 06:22:00
&U show summary info at end -
&T terminate line && ampersand &E escape &Q quote mark
&I five-space tab &C conditional &H header &# or &@ index
--- End quote ---
I could maybe wish Charles had updated LOCATE a little more for Windows, but it's an extremely useful tool as it is (and freeware).
f0dder:
rjbull: unless the tool is very ugly and reads the disk directly (which I doubt), it should work under NT, and on NTFS as well. "This option will only work under an operating system which provides the long-name API." - this sounds a lot like it will work :)
tslim:
Thank you to all who are trying to help!
If you read the "subject" of my initial post, you should realize that I already got what I want with the "DIR" in a DOSBOX (of course)
I started the thread just to express my feel of missing power in today's O/S (when task orientated matters are involved)
In the DOS day, things like DIR and RENAME are very easy and to get their function extended, one just need to add few more parameters. They are just commands of the DOS (not even a stand-alone utility). But look at Windows utility nowaday, we need a "Multi-Rename" tool just to "rename" easily... If it is not through Rjbull's recommendation (the LS) I don't even know where to get a Windows utility that can do the DIR thing (as in the title).
I am not saying the trick played by D.Opus and xPlorer2 are bad one, they are simply shell to DOS function and is DOS dependent. In a way, new guys who are born after the DOS day, do you want them to learn DOS again just to be able to do the DIR thing?
Edvard:
Printfolder
http://no-nonsense-software.com/freeware/
Goodness! Is there NO Win utility to do "DIR /S/B C:\ZZZ\*.JPG > RESULT.TXT"?
Karen's Directory Printer
http://www.karenware.com/powertools/ptdirprn.asp
Goodness! Is there NO Win utility to do "DIR /S/B C:\ZZZ\*.JPG > RESULT.TXT"?
These can both be gotten from a right-click, is this what you need?
f0dder:
I am not saying the trick played by D.Opus and xPlorer2 are bad one, they are simply shell to DOS function and is DOS dependent. In a way, new guys who are born after the DOS day, do you want them to learn DOS again just to be able to do the DIR thing?
-tslim
--- End quote ---
Shell, not DOS ;)
But yeah, I guess you're right apart from that. MS designs for the majority of users, the majority of users probably don't need file listings like this... and 3rd-party tools can always (and have been) written :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version