关于变量%time% 。。。。help。。。。
cmd吧
全部回复
仅看楼主
level 7
3qdazhanee 楼主
比如设置一个bat,打开电脑后15分钟关机,
想法是: at %time%+15 shutdown /p /f
后来发现,我就是一逗B
2013年07月06日 12点07分 1
level 12
time的表示方法。。。。怎么能和数字相加。。。。
2013年07月06日 14点07分 2
可以哦。。。
2013年07月07日 00点07分
好吧 你对的。。。
2013年07月07日 00点07分
level 12
楼主 这个可以 再想想。。。
我试过
把/p改成/s
set /a time=????
2013年07月07日 00点07分 3
/s 太明显了。。关机还要提醒===
2013年07月07日 00点07分
回复 3qdazhanee :好吧。。。。
2013年07月07日 00点07分
level 12
@echo off
echo %time%
set /a shut=%time%+15
at %shut% shutdown -s -t 0 -f
echo bye
exit
2013年07月07日 00点07分 4
运算符不存在---在纯cmd里
2013年07月07日 00点07分
回复 3qdazhanee :运算符不存在
2013年07月07日 00点07分
回复 3qdazhanee :嗯 是我错了[酷]
2013年07月07日 00点07分
1