本帖最后由 pcl_test 于 2015-8-9 10:58 编辑
回复 20# 228630386 - @echo off & setlocal enabledelayedexpansion
- for /f "delims=" %%i in ("%cd%") do set "td=%%~nxi"&set "t=%%~dpi"
- (echo;%cd%|findstr "\[[^\[\]]*\][^\\]*\\【[^【】]*】") >nul&&(
- for /f "delims=" %%j in ("!t:~,-1!") do set "td=%%~nxj\%td%"
- )
- set "fd=F:\提交成品"
- if not exist "%fd%" md "%fd%"
- for /d %%a in (*) do xcopy "%%a" "%fd%\%td%\%%a\" /s /y
- ::win7及以上系统才有clip
- echo;%fd%\%td%|clip
- echo;目标路径已复制到剪贴板,按Ctrl+V即可粘贴&ping -n 2 0 >nul
复制代码
|