本帖最後由 燒浩 於 2018-2-8 12:20 編輯

Copy folder 要用 xcopy(通常加 /e /h /k /i),copy 只可用於單一 file(如 copy 單一file出現路徑問題,留意 path 有 space必需用「"」引住 path)。

TOP

點解唔用Powershell? 會唔會簡單d?

TOP

回覆 5# 燒浩

minute 好似寫 "n"


nowMonth = DatePart("m", nowDateTime)
nowMinute = DatePart("m", nowDateTime)

TOP

本帖最後由 燒浩 於 2018-2-13 10:18 編輯
回覆  燒浩

minute 好似寫 "n"


nowMonth = DatePart("m", nowDateTime)
nowMinute = DatePart("m", now ...
bongbong3481 發表於 2018-2-10 08:18 PM


謝修正。已改回。

點解唔用Powershell? 會唔會簡單d?
kei11182 發表於 2018-2-9 08:09 AM


其實各有各好。不過有時用 PowerShell 感覺最大問題係版本,由其係 2.0 同新版差異(由於之前仲有大量 03 Server),好多時寫啲 script 未必兩邊兼容,固多數簡單嘢會用 cmd 撘 vbscript,比較快解決問題。

TOP

回覆 14# 燒浩

我都覺dos command + vbs 比較易用,檔案處理好方便

TOP