に数文字で始まらないのをリスト:ファイルのコピー私の監督は、例えばバッチファイル</p> <p>に数文字を開始せずにファイルをコピーする方法をバッチ
12red.pcx
9red.pcx
96blue.pcx
alipro.pcx
それから私は、唯一のaliproをコピーする必要があります。
@echo off
set Design_path=D:\
set USB_path=E:\usb\
set t12=12*.pcx
set t9=9*.pcx
set t6=6*.pcx
set tsize=*.pcx
set design12=Dis_12
set design9=Dis_9
set design6=Dis_6
set designsize=D_Size
rem // Create Dir if not exist
if not exist %Design_path%%design12% (mkdir %Design_path%%design12%)
if not exist %Design_path%%design9% (mkdir %Design_path%%design9%)
if not exist %Design_path%%design6% (mkdir %Design_path%%design6%)
if not exist %Design_path%%designsize% (mkdir %Design_path%%designsize%)
if exist %USB_path%%t12% copy %USB_path%%t12% %Design_path%%design12%
if exist %USB_path%%t9% copy %USB_path%%t9% %Design_path%%design9%
if exist %USB_path%%t6% copy %USB_path%%t6% %Design_path%%design6%
? reqについては、 "for/f" delims = "%% a in( 'dir/B * .pcx^| findstr"^[^ 0-9] "')エコーコピーを実行します%% A x:\ whereever' – LotPings
おかげで私の友人 – AliReza
'%% a'は大文字と小文字の区別がつかないように間違っています。 – LotPings