Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试 ping 一个 IP,并将时间日期和秒数接收到文件中。我正在运行date/t&&time/t&&ping 给我 09:50 PM 和 Sat 05/25/13 的命令,但无论如何我可以得到:45 秒?
date/t&&time/t&&ping
echo %date% %time% & ping stackoverflow.com
而不是time/t使用echo %TIME%.
time/t
echo %TIME%
通过相同的方式,而不是date/t你可以使用echo %DATE%
date/t
echo %DATE%