"DIR *.* /B>files.txt" equivalent in Window Search?

W

William Fields

Hello,

On occasion, I need to put a list of filenames in an email message.

I have a command window solution here:

DIR *.* /B>files.txt

Then, I just open files.txt and copy the names.

But, I never remember the /B switch and end up having to look it up in help.
Is there a way to be able to copy the results (file/folder names rather than
the actual files/folder) from a windows file/folder search?

Thanks.

--
William Fields
MCSD - Microsoft Visual FoxPro
US Bankruptcy Court
Phoenix, AZ

"Beer is proof that God loves us
and wants us to be happy."

- Benjamin Franklin
 
D

David H. Lipman

From: "William Fields" <[email protected]>

| Hello,
|
| On occasion, I need to put a list of filenames in an email message.
|
| I have a command window solution here:
|
| DIR *.* /B>files.txt
|
| Then, I just open files.txt and copy the names.
|
| But, I never remember the /B switch and end up having to look it up in help.
| Is there a way to be able to copy the results (file/folder names rather than
| the actual files/folder) from a windows file/folder search?
|
| Thanks.
|
| --
| William Fields
| MCSD - Microsoft Visual FoxPro
| US Bankruptcy Court
| Phoenix, AZ
|
| "Beer is proof that God loves us
| and wants us to be happy."
|
| - Benjamin Franklin
|


Just create a BAT batch file with the following...

@echo off
DIR *.* /B>files.txt

And then create a ShortCut (.LNK) file that point to the batch file ?

That's what batch files are for.

I don't uinderstand why you posted such a simply answered question to *all* those News
Groups ?
 
T

Torgeir Bakken \(MVP\)

William said:
On occasion, I need to put a list of filenames in an email message.

I have a command window solution here:

DIR *.* /B>files.txt

Then, I just open files.txt and copy the names.

But, I never remember the /B switch and end up having to look it up in help.
Is there a way to be able to copy the results (file/folder names rather than
the actual files/folder) from a windows file/folder search?
Hi

My suggestion:

Install the free Agent Ransack and use it for searches.

Download it from here:
http://www.mythicsoft.com/agentransack/default.aspx

Agent Ransack can save the search result to a file (or clipboard), as text,
comma separated text or tab separated text.

When searching for text inside files, Agent Ransack is also able to do a
preview of the lines the text was found in (just do a single click on the
found file).
Also, you can use regular expression on both the file name part and the find
text in files part.
 
W

William Fields

Just create a BAT batch file with the following...

Yes, of course an automated solution is possible. I was just curious if
there was something built into the default Windows Search I could use.
I don't uinderstand why you posted such a simply answered question to
*all* those News
Groups ?

Coverage for the most part. Also felt like it was a question that many
people might be interested in. Cross-posting isn't a problem, any basic
newsreader will mark a message/thread as "read" in all NG's when you look at
it the first time in one NG. BTW - might be a good idea to turn on spell
checking..

Thanks for the suggestion.

--
William Fields
MCSD - Microsoft Visual FoxPro
US Bankruptcy Court
Phoenix, AZ

"Beer is proof that God loves us
and wants us to be happy."

- Benjamin Franklin
 
D

David H. Lipman

|
| Yes, of course an automated solution is possible. I was just curious if
| there was something built into the default Windows Search I could use.
||
| Coverage for the most part. Also felt like it was a question that many
| people might be interested in. Cross-posting isn't a problem, any basic
| newsreader will mark a message/thread as "read" in all NG's when you look at
| it the first time in one NG. BTW - might be a good idea to turn on spell
| checking..
|
| Thanks for the suggestion.


Spell checker is on -- Brain is off ! :)
 
O

Opinicus

William Fields said:
On occasion, I need to put a list of filenames in an email
message.
I have a command window solution here:
DIR *.* /B>files.txt

The "*.*" is unnecessary by the way...
 
D

David Candy

Search is a virtual folder (it's hidden on the desktop) but things that are in search may no longer exist as objects (remember windows shell works with objects not files). Which is why issuing file commands on search results don't always work.

You need to use the Send To Powertoy for 95. http://www.microsoft.com/Windows95/downloads/contents/WUToys/W95PwrToysSet/Default.asp

Install the Windows 95 Send To Power Toys. After installing go to Add/Remove programs in Control Panel and select Send To Extension Power Toys, click Add/Remove and clear the checkboxes for the three mail extensions. Type the following line in Start - Run.
regsvr32 sendmail
This fixes the one problem that installing Win95 Power Toys Send To causes. It still worthwhile installing then fixing for the added functionally of Send To Powertoys. Win98 Send To Desktop As Shortcut and Powertoys Send to Mail can't co-exist, but Win 98 includes it's own Send To Mail. (the 98 comments apply to all later versions).

a.. To create sub menus on the Send To menu type Sendto in the Start - Run dialog box. Click a blank spot and choose New then Folder. Rename the folder to the name you want on the Send To menu. Drag your shortcuts you want on the menu into this folder.
b.. Put a shortcut to Sendto folder into the Sendto folder. Then when you want to add a program or folder to the Send To menu right click it, choose Send To then while holding Ctrl + Shift click Sendto.
c.. To get a list of files you can use the first tip on this page or install the Win 95 Sendto Powertoys (described elsewhere on this page) and send the selected files to the Clipboard As Name powertoy.
d.. To put the URL of a favourite on the clipboard rather than it's name use Clipboard As Content.
Key Description
File System Objects
Control Copies a file
Shift Moves a file
Control and Shift Creates a shortcut
Send To Powertoys (except Send To Clipboard as Contents)
Control Uses the short file name rather than the long file name
Send To Clipboard as Contents Powertoys
Control Displays a dialog box to select the clipboard data formats
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top