A. for /f "tokens=13" %%I in ('find "Default Gateway" ipconfig.txt') do set GatewayIP=%%I B. ipconfig /all>ipconfig.txt C. cscript %windir%\system32\inetsrv\fcgiconfig.js -add -section:"PHP" ^-extension:php -path:"C:\PHP\php-cgi.exe D. ping %GatewayIP% -n 1>nul