Dislocker/script/setup.cmd

21 lines
753 B
Batchfile
Raw Normal View History

@echo off
set dir=%~dp0
cd %dir%
schtasks /create /tn "Dislocker_Client" /tr "%dir%dislocker_client.exe" /sc onlogon /ru "%USERNAME%" /rl highest /f
if %ERRORLEVEL% == 0 (
echo <20>^<5E>X<EFBFBD>N<EFBFBD>X<EFBFBD>P<EFBFBD>W<EFBFBD><EFBFBD><EFBFBD>[<5B><><EFBFBD>[<5B>̐ݒ<CC90><DD92>͊<EFBFBD><CD8A><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
)
if %ERRORLEVEL% == 1 (
echo <20>^<5E>X<EFBFBD>N<EFBFBD>X<EFBFBD>P<EFBFBD>W<EFBFBD><EFBFBD><EFBFBD>[<5B><><EFBFBD>[<5B>̐ݒ<CC90><DD92>ŃG<C583><47><EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
)
Cscript "%dir%shortcut.vbs" "%dir%" "%dir%" "dislocker_client.exe" "stop" "<EFBFBD>V<EFBFBD><EFBFBD><EFBFBD>b<EFBFBD>g<EFBFBD>_<EFBFBD>E<EFBFBD><EFBFBD><EFBFBD>ƒ<EFBFBD><EFBFBD>~<7E><><EFBFBD><EFBFBD>"
if %ERRORLEVEL% == 0 (
Cscript "%dir%shortcut.vbs" "%USERPROFILE%/Desktop" "%dir%" "dislocker_client.exe" "stop" "<EFBFBD>V<EFBFBD><EFBFBD><EFBFBD>b<EFBFBD>g<EFBFBD>_<EFBFBD>E<EFBFBD><EFBFBD><EFBFBD>ƒ<EFBFBD><EFBFBD>~<7E><><EFBFBD><EFBFBD>"
echo <20>V<EFBFBD><56><EFBFBD>[<5B>g<EFBFBD>J<EFBFBD>b<EFBFBD>g<EFBFBD>̍쐬<CC8D>͊<EFBFBD><CD8A><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
)
if %ERRORLEVEL% == 1 (
echo <20>V<EFBFBD><56><EFBFBD>[<5B>g<EFBFBD>J<EFBFBD>b<EFBFBD>g<EFBFBD>̍쐬<CC8D>ŃG<C583><47><EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
)
set /P pc_number=PC<EFBFBD>ԍ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
start %dir%dislocker_client.exe setup %pc_number%
pause