Skip to content

Commit

Permalink
feat(script): add run.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilfish committed Feb 29, 2024
1 parent 8503d3c commit f44d239
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions scripts/run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
chcp 65001

@echo off
title 微博备份工具

:begin
cd %~dp0

echo 请选择要执行的操作:
echo 1. 下载微博配图
echo 2. 查看微博备份
echo 3. 合并新微博数据
set /p UserChoice="请输入您的选择(1、2 或 3): "

if "%UserChoice%"=="1" (
set /p UserID="请输入微博账号ID: "
node ./download.mjs -u %UserID%
pause
) else if "%UserChoice%"=="2" (
node ./server.mjs
pause
) else if "%UserChoice%"=="3" (
node ./merge.mjs
pause
) else (
echo 无效的选择,请输入1、2或3。
goto begin
)

0 comments on commit f44d239

Please sign in to comment.