@echo off
cd %~dp0
if exist Sellers (
rem 現在実行中のバッチをすべて停止
taskkill /F /T /IM Sellers.exe
rem タスクスケジューラを停止
schtasks /change /tn Sellers\Comment /disable
schtasks /change /tn Sellers\Down /disable
schtasks /change /tn Sellers\Iine /disable
schtasks /change /tn Sellers\Sell /disable
schtasks /change /tn Sellers\Stop /disable
schtasks /change /tn Sellers\Tradinfo /disable
schtasks /change /tn Sellers\TradMsg /disable

rem BATCHインストール
curl -O https://weauto23.com/tmp/SellersTool.zip -s
call powershell -command "Expand-Archive -Force SellersTool.zip"
echo { "UUID":"%1"} > ./SellersTool/SellersTool/appsetting.json
rem タスクスケジューラを起動
schtasks /change /tn Sellers\Comment /enable
schtasks /change /tn Sellers\Down /enable
schtasks /change /tn Sellers\Iine /enable
schtasks /change /tn Sellers\Sell /enable
schtasks /change /tn Sellers\Stop /enable
schtasks /change /tn Sellers\Tradinfo /enable
schtasks /change /tn Sellers\TradMsg /enable
rem ファイル削除
del Sellers
)
