在windows xp系统下使用sc命令时,需要注意格式,等号后要有1个空格,如: sc config alert DisplayName= test 如果在DisplayName=后面没有空格,会认为命令行错误。