Launching a search explorer.exe form the command line

  • Thread starter Thread starter AL4B
  • Start date Start date
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
 
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.
 
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
 
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
.
 
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]
 
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.
 
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
.
 
Or, more native cmd way:

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

:)
Al.
 
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).
 
Back
Top