I m试图创建备份目录,使Ausnis真实形象和备份维护自动化。
视I机器背后和(或)有多少装置连接和使用驱动信而定,USB驱动信的改动。
My batch resides in C:
My batch will call ATI.
ATI dumps an image onto C:
The batch then looks for my external based on its volume serial number like so:
SET SN=30BC-F5A4
SET found=
0>NUL SET /P=Searching for external drive...
TIMEOUT 3 /NOBREAK >NUL
FOR %%N IN (D E F G H I J K L M O P Q R S T U V W X Y Z) DO (
IF defined found CALL :MOVE
VOL %%N: 2>NUL | FIND "%sn%" >NUL && CALL :MOVE %%N
)
ECHO Fail^^!
TIMEOUT 3 /NOBREAK >NUL
ECHO.
ECHO Connect it now and cancel "Autoplay".
TIMEOUT 3 /NOBREAK >NUL
ECHO.
ECHO Press any key to try again...
PAUSE >NUL
CALL: EXTERNAL
:: ***MOVE BACKUP***
:MOVE
“科索沃”,这项工作只是罚款,但我现在需要的是大致如此的东西;
Find the correct external device based off of serial number. (As above)
Grab the correct drive letter and turn it into a variable.
Break out of the FOR IN DO
loop when the drive letter is found and make it a variable.
Use variable to check if a folder exists.
If the folder doesn t exist, create it.
If the folder does exist, check if MyBackup.tib
exists within.
If so, delete the file.
CHDIR
or somesuch back to where the batch resides, (C:
) and MOVE
the newly created backup into the folder on the external.
我花了10小时就该问题开展直接工作,我没有比我开始更接近找到正确的辛迪加/通曼。
PLEASE, can you help!? I ll give you a cookie, lol!
I m running Windows 7 Ultimate if that helps...