cd C:\siebel\8.2.2.0.0\Tools_1\BIN
rem compile siebdev.exe /c tools.cfg /d ServerDataSrc /u sadmin /p Passw0rd /bc "Siebel Repository" "C:\siebel\8.2.2.0.0\ses\siebsrvr\OBJECTS\ENU\siebel_sia%date:~10,4%%date:~4,2%%date:~7,2%.srf"
rem Stop service sc stop siebsrvr_SBA_82_SiebelTest
rem wait service stop complete ping -n 100 -w 50000 127.0.0.1 >null
rem rename file name
rename C:\siebel\8.2.2.0.0\ses\siebsrvr\OBJECTS\ENU\siebel_sia%date:~10,4%%date:~4,2%%date:~7,2%.srf siebel_sia%date:~10,4%%date:~4,2%%date:~7,2%.srf001
rename C:\siebel\8.2.2.0.0\ses\siebsrvr\OBJECTS\ENU\siebel_sia.srf siebel_sia%date:~10,4%%date:~4,2%%date:~7,2%.srf
rename C:\siebel\8.2.2.0.0\ses\siebsrvr\OBJECTS\ENU\siebel_sia%date:~10,4%%date:~4,2%%date:~7,2%.srf001 siebel_sia.srf
rem start service sc start siebsrvr_SBA_82_SiebelTest