o:
REM echo "打开o盘"
cd \
REM echo "打开o盘根目录"
for /f "tokens=1,2,3,4" %%i in ('dir ^| find "可用字节"') do set space=%%k
set space=%space:,=%
echo space=%space% B
if %space% lss 109521666048 (
REM echo "磁盘空间不足102g"
) else (
REM echo "磁盘空间大于102g,进行以下操作"
T:
REM echo "打开T盘"
cd t:\A1
REM echo "打开T盘A1文件夹(我存plot文件的地方)"
for /r . %%a in (*.plot) do robocopy t:\A1 O:\ *.plot /mov
REM echo "复制t:\A1下的所有plot文件,到o盘根目录下"
)
REM echo "打开o盘"
cd \
REM echo "打开o盘根目录"
for /f "tokens=1,2,3,4" %%i in ('dir ^| find "可用字节"') do set space=%%k
set space=%space:,=%
echo space=%space% B
if %space% lss 109521666048 (
REM echo "磁盘空间不足102g"
) else (
REM echo "磁盘空间大于102g,进行以下操作"
T:
REM echo "打开T盘"
cd t:\A1
REM echo "打开T盘A1文件夹(我存plot文件的地方)"
for /r . %%a in (*.plot) do robocopy t:\A1 O:\ *.plot /mov
REM echo "复制t:\A1下的所有plot文件,到o盘根目录下"
)