Shutdown.exe的参数与破折号或斜线? [英] shutdown.exe parameters with dashes or slashes?

查看:142
本文介绍了Shutdown.exe的参数与破折号或斜线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用 shutdown.exe的的呼叫重新启动其安装的Windows的不同版本的机器。

对于Windows XP的命令是:

 的shutdown.exe -r -f -t 01

有关其他版本的Windows使用:

 的shutdown.exe / L / R / C / Y / T:1

现在看来,这第二个命令将不会在Windows XP上运行。有谁知道Windows的支持斜杠的哪些版本和破折号?

编辑:

这是没有错的参数的问题。下面是从被感染的机器的打印输出(的Windows XP安装德国):

 的Microsoft Windows XP [版本5.1.2600]
(C)版权所有1985-2001微软公司C:\\ shutdown.exe的/ L / R / C / Y / T:1
语法:shutdown.exe的[-l | -s | -r | -a] [-f] [-m \\\\计算机] [-t XX]
             [-cKommentar] [-d起来:XX:YY]....


解决方案

斜线的做XP 的工作,但打个招呼说你需要使用小写。此外,它看来,你不能使用/ L和/ R(这是有道理的,因为计算机的关机和重新启动将注销用户是这样),你不应该后/吨使用冒号

例如:

 关机/ R / C / Y / T 1

I use a call of shutdown.exe to reboot machines having different versions of Windows installed.

For Windows XP the command is:

shutdown.exe -r -f -t 01

For other versions of Windows I use:

shutdown.exe /L /R /C /Y /T:1

Now it seems, that the second command won't work on Windows XP. Does anybody know which versions of Windows support slashes and which dashes?

EDIT:

This is not an issue of wrong parameters. Here is a printout from an affected machine (German installation of Windows XP):

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\shutdown.exe /L /R /C /Y /T:1
Syntax: shutdown.exe [-l | -s | -r | -a] [-f] [-m \\Computer] [-t xx]
             [-c "Kommentar"] [-d up:xx:yy]

....

解决方案

Slashes do work on XP, but as Poke said you need to use lower-case. Additionally, it appears that you can't use "/l" with "/r" (which makes sense since a shutdown and restart of the computer will log users off anyway), and you shouldn't use a colon after "/t"

Eg:

shutdown /r /c /y /t 1

这篇关于Shutdown.exe的参数与破折号或斜线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆