Launching a search explorer.exe form the command line


A

AL4B

I need to launch search window (as with
to "Start" / "Search"). I know it is explorer.exe but I
cannot find the proper command line option.

Thanks
 
Ad

Advertisements

A

AL4B

Thanks, I know about this knowledge base article, but it
does not tell how to open Explorer.exe in search mode,
like if I press F3 inside Explorer.exe or if I press the
Win+F key combination.
 
T

Torgeir Bakken \(MVP\)

AL4B said:
I need to launch search window (as with
to "Start" / "Search"). I know it is explorer.exe but I
cannot find the proper command line option.
Hi

E.g. like this (creating a temporary VBScript file:

@echo off
echo CreateObject("Shell.Application").FindFiles >%temp%\myff.vbs
cscript.exe //Nologo %temp%\myff.vbs
del %temp%\myff.vbs
 
A

AL4B

Thanks, works great!
-----Original Message-----

Hi

E.g. like this (creating a temporary VBScript file:

@echo off
echo CreateObject("Shell.Application").FindFiles >%temp% \myff.vbs
cscript.exe //Nologo %temp%\myff.vbs
del %temp%\myff.vbs


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/community/scriptcenter/de fault.mspx
.
 
M

Matthias Tacke

AL4B said:
Thanks, I know about this knowledge base article, but it
does not tell how to open Explorer.exe in search mode,
like if I press F3 inside Explorer.exe or if I press the
Win+F key combination.
cscript /nologo ExplSearch.vbs

'ExplSearch.vbs
Dim objShell
Set objShell = WScript.CreateObject("Shell.Application")
objShell.FindFiles

Google is your friend.
http://www.google.com/groups?q=explorer+search+command+line
One of the first resulted in the above code snippet:
http://www.google.com/[email protected]
 
Ad

Advertisements

T

Torgeir Bakken \(MVP\)

Matthias said:
:




cscript /nologo ExplSearch.vbs

'ExplSearch.vbs
Dim objShell
Set objShell = WScript.CreateObject("Shell.Application")
objShell.FindFiles
Hi

See my other post in this thread for a on-the-fly solution.
 
A

AL4B

Thanks
-----Original Message-----


cscript /nologo ExplSearch.vbs

'ExplSearch.vbs
Dim objShell
Set objShell = WScript.CreateObject("Shell.Application")
objShell.FindFiles

Google is your friend.
http://www.google.com/groups? q=explorer+search+command+line
One of the first resulted in the above code snippet:
http://www.google.com/groups? [email protected]

--
Greetings
Matthias________________________________________
For help on nt commands enter in a cmd window:
W2K>HH windows.chm::ntcmds.htm XP>HH ntcmds.chm
.
 
A

Alexander Suhovey

Or, more native cmd way:

type nul > %temp%\1.fnd & start %temp%\1.fnd & del /q /f "%temp%\1.fnd"

:)
Al.
 
Ad

Advertisements

Joined
Jul 18, 2010
Messages
1
Reaction score
0
Canned Wildcard Searches?

I'm a little late to the party, here. But I'm curious: can I modify that DOS command to do a canned wildcard search? Instead of just opening up the search dialog for input, I'd like to have it go ahead and list all files matching a certain pattern (e.g., *.bak).
 

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