批量新建資料夾(淺水魚2022 01 24)

2022-09-19 12:21:14 字數 1589 閱讀 7756

得到新建檔案的名字,如

2023年1月21日 2023年1月22日 2023年1月23日 2023年1月24日 2023年1月25日 2023年1月26日 2023年1月27日 2023年1月28日 2023年1月29日 2023年1月30日 2023年1月31日 2023年2月1日 2023年2月2日 2023年2月3日 2023年2月4日 2023年2月5日 2023年2月6日 2023年2月7日 2023年2月8日 2023年2月9日 2023年2月10日 2023年2月11日 2023年2月12日 2023年2月13日 2023年2月14日 2023年2月15日 2023年2月16日 2023年2月17日 2023年2月18日 2023年2月19日 2023年2月20日 2023年2月21日 2023年2月22日 2023年2月23日 2023年2月24日 2023年2月25日 2023年2月26日 2023年2月27日 2023年2月28日

cmd進到你想要建立這些資料夾的目錄,然後執行命令

f:\新建資料夾》md 2023年1月21日 2023年1月22日 2023年1月23日 2023年1月24日 2023年1月25日 2023年1月26日 2023年1月27日 2022 年1月28日 2023年1月29日 2023年1月30日 2023年1月31日 2023年2月1日 2023年2月2日 2023年2月3日 2023年2月4日 2023年2月5日 2023年2月6日 2023年2月7日 2023年2月8日 2023年2月9日 2023年2月10日 2023年2月11日 2023年2月12日 2023年2月13日 2023年2月14日 2023年2月15日 2023年2月16日 2023年2月17日 2023年2月18日 2023年2月19日 2023年2月20日 2023年2月21日 2023年2月22日 2023年2月23日 2023年2月24日 2023年2月25日 2023年2月26日 2023年2月27日 2023年2月28日

然後我執行完之後的效果是,在f盤下的新建資料夾下建立了n個日期資料夾

上圖友情提示

2023年1月21日 2023年1月22日 2023年1月23日 2023年1月24日 2023年1月25日 2023年1月26日 2023年1月27日 2022 年1月28日 2023年1月29日 2023年1月30日 2023年1月31日 2023年2月1日 2023年2月2日 2023年2月3日 2023年2月4日 2023年2月5日 2023年2月6日 2023年2月7日 2023年2月8日 2023年2月9日 2023年2月10日 2023年2月11日 2023年2月12日 2023年2月13日 2023年2月14日 2023年2月15日 2023年2月16日 2023年2月17日 2023年2月18日 2023年2月19日 2023年2月20日 2023年2月21日 2023年2月22日 2023年2月23日 2023年2月24日 2023年2月25日 2023年2月26日 2023年2月27日 2023年2月28日
這一串資料夾名字,肯定不是我乙個個手動打的呀,我是利用了excel和submit文字編輯器的

淺水魚(codefish) 2022-01-24

cmd 新建檔案和新建資料夾

整理備份 一 建立空檔案的幾種方法 1 cd.a.txt cd.表示改變當前目錄為當前目錄,即等於沒改變 而且此命令不會有輸出。表示把命令輸出寫入到檔案。後面跟著a.txt,就表示寫入到a.txt。而此例中命令不會有輸出,所以就建立了沒有內容的空檔案。2 copy nul a.txt nul表示空裝...

c 新建資料夾

1 問題描述 在寫程式的過程中需要將不同的分割檔案儲存在不同的資料夾中,所以需要檢查有沒有該資料夾,如果有的話,那就直接儲存檔案,如果沒有的話,就先建立資料夾。程式處理前資料夾內檔案狀況如圖1所示 圖1 未執行程式之前的情況 2 c 程式 include include include includ...

matlab 新建資料夾

如果不存在 myname 反正就是自己想搜尋的乙個什麼名稱 那就新建乙個,如果是資料夾,可以將新建的該資料夾加入到搜尋路徑中 if exist results file 如果不存在有results的file,那就返回非0 mkdir results 生成新的results的file addpath ...