if else on windows batch

前端 未结 0 1474
盖世英雄少女心
盖世英雄少女心 2020-11-30 16:18

I tried to create a script with c++ which will active a batch code if user tries to shutdown his computer.

if(system("shutdown -s")){ runs batch code }

相关标签:
回答
  • 消灭零回复
提交回复
热议问题