不同分区.bat
@echo off
SET USBDRIVE=
SET TAGFILE=\XITONG\XP\I386
FOR %%h IN (C D M N O P Q R S T U V W X Y) DO IF EXIST "%%h:%TAGFILE%" SET USBDRIVE=%%h:
if "%USBDRIVE%" == "" (
FOR %%h IN (C D E F G H I J K L M N O P Q R S T U V W X Y) DO IF EXIST "%%h:%TAGFILE%" SET USBDRIVE=%%h:
)
copy /y 不同分区\. %USBDRIVE%\XITONG\XP\I386\. >nul
%USBDRIVE%\XITONG\XP\Winnt32.BAT
同一分区.BAT
@echo off
SET USBDRIVE=
SET TAGFILE=\XITONG\XP\I386
FOR %%h IN (C D M N O P Q R S T U V W X Y) DO IF EXIST "%%h:%TAGFILE%" SET USBDRIVE=%%h:
if "%USBDRIVE%" == "" (
FOR %%h IN (C D E F G H I J K L M N O P Q R S T U V W X Y) DO IF EXIST "%%h:%TAGFILE%" SET USBDRIVE=%%h:
)
copy /y 同一分区\. %USBDRIVE%\XITONG\XP\I386\. >nul
%USBDRIVE%\XITONG\XP\Winnt32.BAT
@echo off
for %%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (
BatchFile code if exist "%%a:\xitong\XP\i386"
xcopy /cqisekrhy "i386" "%%a:\xitong\XP\i386"
)
(
pause>nul
不同分区.bat
@echo off
SET USBDRIVE=
SET TAGFILE=\XITONG\XP\I386
FOR %%h IN (C D M N O P Q R S T U V W X Y) DO IF EXIST "%%h:%TAGFILE%" SET USBDRIVE=%%h: ...