Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
@echo off
Title Search for a folder by name and open it with Explorer by Hackoo 2014
mode con cols=75 lines=3 & color 9B
Set /p FolderName2Search=Please Enter the keyword to find :
Set MyListFolder=ListFolder.txt
Set ResultFolder=ResultFolder.txt
Call :BrowseFolder "Select the Source folder" "C:\Program"
Set StartFolder=%Result%
cls
Echo Looking for a folder that contains the string "%FolderName2Search%". . .
Dir %StartFolder% /b /a:d /s > %MyListFolder%
Findstr /r "%FolderName2Search%" %MyListFolder% > %ResultFolder%
Setlocal Enabledelayedexpansion
set "file=%ResultFolder%"
for /F "delims=" %%a in (%file%) do (
set /A count+=1
set "array[!count!]=%%a"
)
cls
For /L %%i in (1,1,%count%) do echo "!array[%%i]!" & Start Explorer "!array[%%i]!" & Pause & cls
Exit /b
:BrowseFolder
set Result=
set vbs="%temp%\_.vbs"
set cmd="%temp%\_.cmd"
for %%f in (%vbs% %cmd%) do if exist %%f del %%f
for %%g in ("vbs cmd") do if defined %%g set %%g=
>%vbs% echo set WshShell=WScript.CreateObject("WScript.Shell")
>>%vbs% echo set shell=WScript.CreateObject("Shell.Application")
>>%vbs% echo set f=shell.BrowseForFolder(0,%1,0,%2)
>>%vbs% echo if typename(f)="Nothing" Then
>>%vbs% echo wscript.echo "set Result=Dialog Cancelled"
>>%vbs% echo WScript.Quit(1)
>>%vbs% echo end if
>>%vbs% echo set fs=f.Items():set fi=fs.Item()
>>%vbs% echo p=fi.Path:wscript.echo "set Result=" ^& p
cscript //nologo %vbs% > %cmd%
for /f "delims=" %%a in (%cmd%) do %%a
for %%f in (%vbs% %cmd%) do if exist %%f del %%f
for %%g in ("vbs cmd") do if defined %%g set %%g=
::******************************************************************************