how to search a string in path thru batch?

September 16, 2010 at 08:59:33
Specs: Windows 7
i need check whether the path (ex:C:\Interstage\APS ) contains APS string or not thru batch program..can anybody help?

thanks,
tester


See More: how to search a string in path thru batch?

Report •


#1
September 16, 2010 at 09:48:34
@echo off & setLocal EnableDELAYedeXpansion

echo %CD% | find /i "APS" > nul
if errorlevel 1 echo no && goto :eof
echo yes


=====================================
Helping others achieve escape felicity

M2


Report •

#2
September 16, 2010 at 11:44:49
thanks a lot..cool..

Report •

Related Solutions


Ask Question