bat 进行 本地的文件移动

@echo off
setlocal enabledelayedexpansion
for /F "delims=" %%i in ('dir /a-d /b') do (
if not "%%~nxi"=="%~nx0" (
  if "%%~xi" == ".EMS" (
set dd=%%i
set "dd=!dd:~7,10!"
md D:\360Downloads\BW_FTP\Receive\!dd!\
copy %%i D:\360Downloads\BW_FTP\Receive\temp\
move %%i D:\360Downloads\BW_FTP\Receive\!dd!\
  ) 
)
)

你可能感兴趣的:(bat 进行 本地的文件移动)