@echo off
:for /f "tokens=5" %i in ('netstat -ano ^| findstr ":7778"') do taskkill /F /PID %i;
for /f "tokens=5" %%a in ('netstat -ano ^| findstr /R /C:":7778 "') do (
taskkill /F /PID %%a
)
:1、当前路径
echo "Current Path:" %cd%
:2、当前路径 的上一级完整路径
for %%i in ("%cd%\..") do (
echo parentDir: %%~fi
:set dirx=%%~fi
:echo %dirx%
:文件cp
robocopy %cd% %%~fi /E /IS /IT /R:0 /W:0 /NP /NFL /NDL
pause
)
pause