Why batch file run with failure in Windows Server ?

SamSam
1 min readOct 5, 2019

--

It’s trivial but interesting and hard to determine the cause. Because you can’t even get “log” to it.

The issue is because you DID log the case, but the format you wrote which is wrong.

Please refer to this article. I quoted the point.

https://stackoverflow.com/questions/44664708/date-produces-different-result-in-batch-file-when-run-from-scheduled-tasks-in

The problem showed that there is no log file about this task. We all well-know (ya?) that log file can’t be created by “yyyy/ mm/ dd” format.

Got you!

So, please follow the steps to change your format of system.

Originally published at http://datamansamxiao.wordpress.com on October 5, 2019.

--

--

SamSam
SamSam

Written by SamSam

用有限的資料知識探索無限的世界

No responses yet