Batch file 批处理文件重新启动系统关闭

Batch file 批处理文件重新启动系统关闭,batch-file,system,Batch File,System,我正在尝试创建一个重启电脑的批处理文件。因此,批处理文件在启动后立即关闭,系统不会重启。因为我不确定重启的哪个命令是正确的,所以我把找到的都放了 title System restart script echo Restarting in progress shutdown.exe /r /t 00 shutdown -t 0 -r -f shutdown -t 00 -r shutdown.exe -r -t 00 shutdown.exe-r-t00或shutdown.exe/r/t00。

我正在尝试创建一个重启电脑的批处理文件。因此,批处理文件在启动后立即关闭,系统不会重启。因为我不确定重启的哪个命令是正确的,所以我把找到的都放了

title System restart script
echo Restarting in progress
shutdown.exe /r /t 00
shutdown -t 0 -r -f
shutdown -t 00 -r
shutdown.exe -r -t 00

shutdown.exe-r-t00
shutdown.exe/r/t00
r
标志是指示重新启动的标志,而
t
标志指示执行操作之前的延迟

有关更多信息,请参阅或。

因此批处理文件在启动后立即关闭,系统不会重新启动。这没有任何意义。