小弟最近寫了一個script,主要用意是在monitor每天的memory usage
直接執行bat時log內容都沒問題
但加入win7/win10去排每日行程讓它自動每天掃一次做記錄
結果檔案都是okb
請問是bug還是需要設置什麼權限?
[補充]
==script===
call "Memory.bat">C:\Temporary\tony\iflex_memory\MemoryResult.txt
for /F "tokens=1-4 delims=/ " %%a IN ("%date%") DO (
set year=%%a
set month=%%b
set day=%%c
set today=%%a%%b%%c
)
copy C:\Temporary\tony\iflex_memory\MemoryResult.txt C:\Temporary\tony\iflex_memory\MemoryResult.txt\MemoryResult-%today%.log
exit
==log===
CPU Percentage = 2%
Free MEMORY = 4698772 Bytes
Total MEMORY = 8507396096 Bytes
[補充]
問題已解