@dir Q:\xampp_claris\htdocs\claris2\Claris\ > nul @IF %ERRORLEVEL% == 0 ( rem local set drive=Q: set path="\xampp_claris\htdocs\claris2\Claris\shedul\" set phppath="Q:\xampp_claris\php\php.exe" ) ELSE ( rem server set drive=c: set path=\inetpub\htdocs\claris-bt.com\shedul\ set phppath="C:\Program Files (x86)\PHP\v5.3\php.exe" ) @%drive% @cd %drive%\%path% @echo Running socket server... @%phppath% diagn_socket.php @pause