
- remove annoying confirmations on disable/enable scripts - fix disable script on x86 - make sure Schedule service is running before trying do anything with schtasks
42 lines
1.3 KiB
Batchfile
42 lines
1.3 KiB
Batchfile
@echo off
|
|
title wufuc utility - enable task
|
|
:: Copyright (C) 2017 zeffy
|
|
|
|
:: This program is free software: you can redistribute it and/or modify
|
|
:: it under the terms of the GNU General Public License as published by
|
|
:: the Free Software Foundation, either version 3 of the License, or
|
|
:: (at your option) any later version.
|
|
|
|
:: This program is distributed in the hope that it will be useful,
|
|
:: but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
:: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
:: GNU General Public License for more details.
|
|
|
|
:: You should have received a copy of the GNU General Public License
|
|
:: along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
echo Copyright ^(C^) 2017 zeffy
|
|
echo This program comes with ABSOLUTELY NO WARRANTY.
|
|
echo This is free software, and you are welcome to redistribute it
|
|
echo under certain conditions; see COPYING.txt for details.
|
|
echo.
|
|
|
|
fltmc >nul 2>&1 || (
|
|
echo This batch script requires administrator privileges. Right-click on
|
|
echo %~nx0 and select "Run as administrator".
|
|
goto :die
|
|
)
|
|
|
|
set "wufuc_task=wufuc.{72EEE38B-9997-42BD-85D3-2DD96DA17307}"
|
|
net start Schedule
|
|
schtasks /Change /TN "%wufuc_task%" /ENABLE
|
|
schtasks /Run /TN "%wufuc_task%"
|
|
|
|
echo.
|
|
echo Enabled and started wufuc!
|
|
|
|
:die
|
|
echo.
|
|
pause
|
|
exit
|