作者junorn (威廉華勒斯)
看板EZsoft
標題Re: [請問] 自動建立資料夾歸檔軟體
時間Wed Aug 6 23:40:40 2008
剛剛腦筋突然扭了一下 (連同脖子0rz)
想到另一種寫法,比較簡單而且也可以對應1_1_1_? (?代表1-9 , 10以後....)
@echo off
for /f "tokens=*" %%a in ('dir /b/a-d "%cd%\1_1_1_?*.*"') do (
set file=%%a
setlocal ENABLEDELAYEDEXPANSION
if not exist "%cd%\!file:~0,7!" md "%cd%\!file:~0,7!"
copy /y "%cd%\!file!" "%cd%\!file:~0,7!"
)
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.132.171.86
1F:推 hpo14:好威 08/07 00:47
2F:→ VElysian:借轉 EzHotKey 板~~ 謝謝。 ^_^ 08/07 17:50
※ VElysian:轉錄至看板 EzHotKey 08/07 17:50