1个回答
展开全部
复制粘贴到记事本,另存为xx.bat,编码选ANSI
@echo off
rem 将一个文件夹里的文件每隔1秒剪切/移动到另一个文件夹里
set #=Any question&set @=WX&set $=Q&set/az=0x53b7e0b4
title %#% +%$%%$%/%@% %z%
cd /d "%~dp0"
set "oldfolder=D:\xxx\A"
set "newfolder=D:\xxx\B"
set sleep=1
if not exist "%oldfolder%" (echo;"%oldfolder%" not found&goto end)
if not exist "%newfolder%" (md "%newfolder%")
for /f "delims=" %%a in ('dir /a-d/b "%oldfolder%\"') do (
echo;"%oldfolder%\%%~nxa" --^> "%newfolder%\"
move "%oldfolder%\%%~nxa" "%newfolder%\"
if exist "%windir%\System32\timeout.exe" (
timeout /t %sleep% /nobreak
) else (
set /a t=sleep+1
>nul call ping /n %%t%% 0
)
)
:end
echo;%#% +%$%%$%/%@% %z%
pause
exit
@echo off
rem 将一个文件夹里的文件每隔1秒剪切/移动到另一个文件夹里
set #=Any question&set @=WX&set $=Q&set/az=0x53b7e0b4
title %#% +%$%%$%/%@% %z%
cd /d "%~dp0"
set "oldfolder=D:\xxx\A"
set "newfolder=D:\xxx\B"
set sleep=1
if not exist "%oldfolder%" (echo;"%oldfolder%" not found&goto end)
if not exist "%newfolder%" (md "%newfolder%")
for /f "delims=" %%a in ('dir /a-d/b "%oldfolder%\"') do (
echo;"%oldfolder%\%%~nxa" --^> "%newfolder%\"
move "%oldfolder%\%%~nxa" "%newfolder%\"
if exist "%windir%\System32\timeout.exe" (
timeout /t %sleep% /nobreak
) else (
set /a t=sleep+1
>nul call ping /n %%t%% 0
)
)
:end
echo;%#% +%$%%$%/%@% %z%
pause
exit
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询