开发者

.bat for shutdown/reboot on xp loop problem

i have a little problem... on win xp, if i write on commandline

shutdown -t 00 -r -f

the reboot works fine. but if i paste it, as is, in a bat file...the prompt show me an infinite loop. anyone can say me why?

than开发者_开发问答ks a lot for any suggestion :)


What is the name of you batch file? I hope it's not shutdown.bat :)

If it is then I am afraid invoking shutdown -t 00 -r -f from within the batch file will call your batch file again instead of calling shutdown.exe and this goes on ad infinitum (since shutdown.bat is in the current dir and shutdown.exe is probably in the c:\windows\system32 directory)


Did you name the file shutdown.bat by any chance? ... if so when you call shutdown it will call the .bat file and loop.

shutdown.EXE -t 0 -r -f 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜