[批次] 如何建立以年月日時為檔名的備份 1000P
如題
我把BAT寫成這樣
xcopy "C:\Program Files (x86)\MUH\BlueStacks IMEI Generator\History.txt"
"D:\01.New Download Files\06.舊版
BlueStacks\History\%date:~0,4%%date:~5,2%%date:~8,2%" /S /Y
結果備份時會出現下面的問句
D:\01.New Download Files\06.舊版BlueStacks\History>xcopy "C:\Program Files
(x86)
\MUH\BlueStacks IMEI Generator\History.txt" "D:\01.New Download Files\06.舊版
Blu
eStacks\History\20160219" /S /Y
D:\01.New Download Files\06.舊版BlueStacks\History\20160219 是否指定目標檔案
名稱或目標目錄名稱
(F = 檔案,D = 目錄)?
所以想徵求高手幫忙改成可以用 年月日_時分秒 作為檔名直接備份的TXT檔
提供稅後1000P作為報酬 謝謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 203.70.89.101
※ 文章網址: https://www.ptt.cc/bbs/EzHotKey/M.1455879626.A.2FB.html
※ s5201314eee:轉錄至看板 EZsoft 02/19 19:04
推
02/19 20:07, , 1F
02/19 20:07, 1F
→
02/19 20:07, , 2F
02/19 20:07, 2F
L大可能誤會我的意思了
我目前備份時 會出現 "是否指定目標檔案名稱或目標目錄名稱"
希望可以不要出現
另外就是會產生一個以年月日為檔名的資料夾
裡面有個HISTORY.TXT
想要改成產生類似20160219_183030.txt這樣的檔案
謝謝
※ 編輯: s5201314eee (203.70.89.101), 02/19/2016 20:56:37
推
02/19 21:08, , 3F
02/19 21:08, 3F
→
02/19 21:08, , 4F
02/19 21:08, 4F
→
02/19 21:08, , 5F
02/19 21:08, 5F
→
02/19 21:09, , 6F
02/19 21:09, 6F
→
02/19 21:09, , 7F
02/19 21:09, 7F
→
02/19 21:11, , 8F
02/19 21:11, 8F
→
02/19 21:21, , 9F
02/19 21:21, 9F