Dislocker/script/setup.cmd

26 lines
871 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>
set /P onetime=<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>^<5E>C<EFBFBD><EFBFBD><EFBFBD>p<EFBFBD>X<EFBFBD><EFBFBD><EFBFBD>[<5B>h<EFBFBD><68><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
2024-09-24 14:27:46 +09:00
set /P host_url=<EFBFBD>z<EFBFBD>X<EFBFBD>gURL<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28>K<EFBFBD>v<EFBFBD>ȏꍇ<C88F>̂<EFBFBD>)
start %dir%dislocker_client.exe setup %pc_number% %onetime% %host_url%
pause