Create a batch file with multiple options

后端 未结 5 1531
情深已故
情深已故 2020-12-08 10:13

Hi I want to create a batch which performs more than one operations. Like it should display

1.Restart
2.Shutdown
3.Close all Windows
4.Log off
5         


        
5条回答
  •  猫巷女王i
    2020-12-08 11:06

    There a a lot of tutorials available on internet for batch programming like http://www.infionline.net/~wtnewton/batch/batguide.html .you can go through it

    The commands 1.Restart 2.Shutdown 3.Close all Windows 4.Log off 5.Switch User are available from execution from command like but require admin privileges. you can try this for available options.

    shutdown help
    

    on command line.

提交回复
热议问题