我正在使用sandisk usb,它有内置软件,称为具有保险库访问权限的安全访问软件,我在其中创建了一个文件夹,并希望将所有数据传输到该文件夹,这是我的脚本,当我运行它检测到USb驱动器创建一个文件夹并将其复制到该文件夹而不是安全文件夹。
@echo off
setLocal Enabledelayedexpansion
set "myDrive="
for %%a in (a b 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 (
if not defined myDrive vol %%a: >nul 2>nul && (
if exist "%%a:\RunSanDiskSecureAccess_Win.exe" set "myDrive=%%a:"
)
)
if defined myDrive (
echo drive found [%myDrive%]
) else (
echo USB drive has not been found
)
ping 10.10.10.10 -n 1 -w 5000 > nul
xcopy "E:\Export\*.*" "%myDrive%\My Vault\transit\" /e /i /y
xcopy E:\Export\*.* E:\Backup\
echo msgbox"All Files Transferred Successfully">a.vbs&a.vbs&del a.vbs
exit