Thanks a lot shinedoss...Go through following chunk of codes..
Code:
@ECHO OFF & SETLOCAL
PUSHD %~dp0
ECHO Now we start Apache
xampp_cli.exe start apache
POPD
PAUSE
if you put this code snippet in startup as a batch file,it will automatically start apache module even you close the window...i sniffed it from my frnds code snippet.similarly for mysql.Also,my xampp apache module is not avilable in my service list and rest is familiar for me