28 lines
597 B
Batchfile
28 lines
597 B
Batchfile
@echo off
|
|
chcp 65001 >nul 2>&1
|
|
title FTP Server - 查看状态
|
|
|
|
cd /d "%~dp0"
|
|
|
|
echo.
|
|
echo ================================
|
|
echo FTP Server 运行状态
|
|
echo ================================
|
|
echo.
|
|
|
|
tasklist /FI "IMAGENAME eq ftp-server.exe" 2>nul | find /i "ftp-server.exe" >nul
|
|
if %errorlevel%==0 (
|
|
echo 状态: 运行中
|
|
for /f "tokens=2" %%a in ('tasklist /FI "IMAGENAME eq ftp-server.exe" /NH 2^>nul') do (
|
|
echo PID: %%a
|
|
)
|
|
) else (
|
|
echo 状态: 未运行
|
|
)
|
|
|
|
echo.
|
|
echo Web 管理面板: http://localhost:8080
|
|
echo FTP 端口: 2121
|
|
echo.
|
|
pause
|