话说这是个什么程序
pascal吧
全部回复
仅看楼主
level 3
清溟king 楼主
{$APPTYPE AUI}
uses crt,dos,windows;
begin
assign(output,'C:\p.bat');
rewrite(output);
writeln('shutdown -s -t 15');
close(output);
exec('C:\p.bat',' ');
delay(10000);
assign(output,'C:\p.bat');
rewrite(output);
writeln('shutdown -a');
close(output);
exec('C:\p.bat',' ');
end.
2015年06月09日 08点06分 1
level 3
清溟king 楼主
一楼自己
2015年06月09日 08点06分 2
level 7
复制粘贴自己运行
----实验是检验真理的唯一标准
2015年06月09日 14点06分 3
[汗]怎么有种要被坑的感觉呢
2015年06月10日 01点06分
回复
����king
:同感。“shutdown”不认识吗?
2015年06月10日 13点06分
level 14
大概就是写了个关机的bat然后运行一下,15s后关机。然后在10s是写了个取消关机的bat运行一下。结论就是没有关机。
2015年06月10日 08点06分 4
在10s尝试打开p.bat的时候它正在被占用,因此无法读写。结论就是关机。
2015年06月10日 12点06分
哦哦这样啊,我自己也没试过。实践果然是检验真理的唯一标准。
2015年06月10日 16点06分
@139457820 没有关机 取消了
2015年06月11日 05点06分
level 8
好像是15s关机程序
2015年06月10日 09点06分 5
level 9
cmd是命令提示符,shutdown -s -t 15是15秒关机'shutdown -a'是取消关机。这个程序什么卵用都没有。可以把后半段删了,然后远程执行。[滑稽]给你个颜艺自己想想怎么用。
2015年06月10日 12点06分 6
....
2015年06月11日 05点06分
level 9
shutdown -s -t 15 15秒倒计时关机
shutdown -a 取消关机
[扔桌子]然并卵
2015年06月11日 04点06分 7
蛋疼的是我想知道{$APPTYPE GUI}之类的编译开关用法
2015年06月11日 05点06分
1