Here's a batch file that executes a few cygwin (unix) commands from Windows.


@echo off
rem get (DOS) current working directory
set inputDir=%~dp0
rem change slash direction for cygwin
set result=%inputDir:\=/%
echo.Processing directory %result%
echo.
echo.DiSCO (php and js)
rem execute a cygwin script using bash
bash --login -c 'cd %result%; wc -l `find ../receiver/classes/DiSCO ../receiver/js/lib/DiSCO -name "*.php" -o -name "*.js"`;'
echo.
echo.WITO client (js)
bash --login -c 'cd %result%; wc -l `find ../receiver/js/global -name "*.php" -o -name "*.js"`;'
pause

References