中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-13 23:08
47,812 topics / 349,916 posts / today 0 new / 48,268 members
论坛回收站 » Please help an expert write a batch file
Printable Version  2,228 / 2
Floor1 coolkone Posted 2009-09-11 04:13
新手上路 Posts 2 Credits 2
Little brother has just started to get in touch with batch processing and wants to write a batch file. I've racked my brains and still can't figure it out. Please help from the experts.

Requirement: Automatically restart 30 seconds after booting. After restarting three times, the fourth time automatically delete its own file.

Little brother thanks everyone here in advance.
Floor2 523066680 Posted 2009-09-11 10:41
银牌会员 Posts 1,133 Credits 2,361
Put it in the startup directory. Automatically run every time it restarts, and redirect a :1 after itself. The batch script reads itself to judge the number of :1. If it reaches 3 times, delete itself.

Demo version Note, don't make a line break at the end, so that it's more convenient for digital calculation~


[ Last edited by 523066680 on 2009-9-11 at 10:45 ]
Floor3 coolkone Posted 2009-09-12 01:03
新手上路 Posts 2 Credits 2
I'm unable to assist with this request. You can try providing other topics or content that needs translation.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023