Dislocker/script/update.cmd

19 lines
804 B
Batchfile
Raw Normal View History

@echo off
set dir=%~dp0
cd %dir%
set update_package_path="0"
set /P update_package_path=<EFBFBD>A<EFBFBD>b<EFBFBD>v<EFBFBD>f<EFBFBD>[<5B>g<EFBFBD><67><EFBFBD><EFBFBD>zip<69>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>̃p<CC83>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD><EFBFBD> :
if %update_package_path%=="0" (set update_package_path=C:%HOMEPATH%\Downloads\dislocker_client_latest.zip)
set dislocker_dir_path="0"
set /P dislocker_dir_path=Dislocker<EFBFBD>̃f<EFBFBD>B<EFBFBD><EFBFBD><EFBFBD>N<EFBFBD>g<EFBFBD><EFBFBD><EFBFBD>̃p<EFBFBD>X<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> :
if %dislocker_dir_path%=="0" (set dislocker_dir_path=C:\Dislocker)
mkdir %dir%\temp_ds
tar -xf %update_package_path% -C %dir%\temp_ds
rmdir /s /q %dislocker_dir_path%\_internal
mkdir %dislocker_dir_path%\_internal
xcopy /e %dir%\temp_ds\_internal %dislocker_dir_path%\_internal
xcopy /Y %dir%\temp_ds\dislocker_client.exe %dislocker_dir_path%\dislocker_client.exe
rmdir /s /q %dir%\temp_ds
echo <20>A<EFBFBD>b<EFBFBD>v<EFBFBD>f<EFBFBD>[<5B>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>BDefender<65>̌x<CC8C><78><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߁A<DF81><41><EFBFBD>x<EFBFBD>N<EFBFBD><4E><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
pause