ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Goodness! Is there NO Win utility to do "DIR /S/B C:\ZZZ\*.JPG > RESULT.TXT"?

<< < (3/6) > >>

tslim:
How nice if LS lets user add a phase at the beginning or append a phase to end of every item it outputs.
I believe there could be a TC plugin for what I want to do, but isn't it a main feature that should be IN the TC program itself rather than an optional plugin?

rjbull:
How nice if LS lets user add a phase at the beginning or append a phase to end of every item it outputs.
-tslim (January 07, 2007, 12:27 AM)
--- End quote ---

I think you're asking for more than a directory lister there.  I'd go back to DOS, and use Horst Schaeffer's LMOD to pre-pend/append text:


--- ---LMOD 1.3 Filter (c) 2002 Horst Schaeffer
Syntax: LMOD options string_with_tokens
Options:
        /Ln[-m] line [range] to select (default: first non blank line)
        /L[n]*  all lines [starting n]
        /E      include empty input lines (default: no output)
        /S..    delimiters for word extraction, instead of default (,;=)
        /B..    as /S, but excluding blank space as delimiter
        /Nn     starting line number (for token [#]), default: /N001
Insert from source line (expression in square brackets):
 [p,l $n U|L Rn]  default []: complete line
        p,l     from position p, length l (default rest of line)
        $n      word number n ("!" for last word); optionally ┬▒offset
        $n:m    range of words by number (blank space will be inserted)
        U|L     convert to upper|lower case
        Rn      right aligned in output field of size n
Other tokens:
        [+]     insert CR+LF
        [-]     omit CR+LF at end of output
        [#]     line number (digits acc. to option, default:3)
        [=n]    tab to position n in output line
        [~n]    ASCII code n (decimal)
        [".."]  quoted char/string (use for redirection symbols)

I believe there could be a TC plugin for what I want to do, but isn't it a main feature that should be IN the TC program itself rather than an optional plugin?

--- End quote ---

You could always ask Christian for the feature...


@Mouser: I found LS from PriceLessWare, if I remember correctly.

tslim:
In this case, I won't want to go back DOS unless I have no choice!

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" (like my case), but most of us have given DOS up many years ago and now we have problem doing something which was nothing in the old DOS day.

f0dder:
You can always open a console window under windows - command.com (DOS app) for win9x, cmd.exe (win32 console) for NT. And even NT, that isn't DOS-based like 9x is, still has DOS emulation.

I really love xplorer^2 since it allows me to write shell commands in the location bar, that run in the context of the current folder. If I'm in [/b]d:\src\proj\fsekrit[/b], I type $dir *.cpp /s /b in the location bar, and up pops a window with the files. - and it's not even a console window, since xplorer^2 redirects input/output and handles it itself :)

Goodness! Is there NO Win utility to do "DIR /S/B C:\ZZZ\*.JPG > RESULT.TXT"?Goodness! Is there NO Win utility to do "DIR /S/B C:\ZZZ\*.JPG > RESULT.TXT"?

Dirhael:
Ok, so I played around a little with Dopus, and made a button for you that should take care of this. Just copy the code below to your clipboard, open a lister, go to tools -> customize and right-click on any toolbar where you'd like the button to be and choose paste.
When using it, you'll first be asked what filename filters you'd like (e.g.: *.avi), and then present you with a "save-as..." dialogue. Simple & easy :)


--- ---<?xml version="1.0" encoding="UTF-8"?>
<button display="both" effect="gray">
<guid>{42389041-894C-478A-926F-ACD0E6033C15}</guid>
<label>Print list of files in directory</label>
<tip>Print the name of files in the current directory, and any subdirectories, to a file of your choosing</tip>
<icon1>122</icon1>
<function type="batch">
<instruction>runmode hide</instruction>
<instruction>dir /b /s {dlgstring|Enter filename filter (e.g.: *.avi)} &gt; {dlgsave|Save results} </instruction>
</function>
</button>

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version