备份 \o?zL7
-------------------------------------------------------------------------------------------------------------------------------------- ct3QtX0B
@echo off JHwkLAuz
rem get current date and time w}G2m)(
for /f "tokens=1, 2, 3, 4 delims=-/. " %%j in ('Date /T') do set FILENAME=srv_%%j_%%k_%%l_%%m C#emmg!a\
for /f "tokens=1, 2 delims=: " %%j in ('TIME /T') do set FILENAME=%FILENAME%_%%j_%%k.bat O}MY:6Pe
XPd>DH(Yc
rem get all service name &Sj<X`^
sc query type= service state= all| findstr /r /C:"SERVICE_NAME:" >tmpsrv.txt !(*mcYA*W
echo Save Service Start State In %FILENAME% DOaEz?2)
rem save service start state into batch file "V&2g?
rem OwwH 45
Ht5 %fcD
echo @echo Restore The Service Start State Saved At %TIME% %DATE% >"%FILENAME%" =<_xUh.
echo @pause >>"%FILENAME%" J<p<