@echo off
setlocal

set "LOCAL_DIR=C:\my-project\dist"
set "REMOTE_USER=your_username"
set "REMOTE_HOST=192.168.1.100"
set "REMOTE_PATH=/home/your_username/webapp"

scp -r -C "%LOCAL_DIR%" "%REMOTE_USER%@%REMOTE_HOST%:%REMOTE_PATH%"

if %errorlevel% equ 0 (
    echo 上传成功！
) else (
    echo 上传失败！请检查网络、密码或路径。
    pause
)

endlocal