China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 15:31
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » [Help] Programming question View 753 Replies 4
Original Poster Posted 2005-04-11 00:00 ·  中国 福建 漳州 电信
初级用户
Credits 110
Posts 3
Joined 2005-04-09 00:00
21-year member
UID 38018
Gender Male
Status Offline
I want to use DOS to write a program that uses the system time to format a hard drive (for example, if I want the system time to reach 2005-10-1 0:00, it will automatically format a hard drive, or delete a file). How should this batch file be written?

Also, how can I add this file into the system processes?
Floor 2 Posted 2005-04-11 00:00 ·  中国 广东 潮州 电信
中级用户
★★
Credits 240
Posts 53
Joined 2005-01-21 00:00
21-year member
UID 35493
Gender Male
Status Offline
This is very simple! But if you don't explain the specific purpose clearly, probably no one will teach you, because this request looks very suspicious
Floor 3 Posted 2005-04-12 00:00 ·  中国 广东 广州 教育网
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
Is the OP up to something shady?
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 4 Posted 2005-04-12 00:00 ·  中国 福建 漳州 电信
初级用户
Credits 110
Posts 3
Joined 2005-04-09 00:00
21-year member
UID 38018
Gender Male
Status Offline
Absolutely not doing anything crooked~ I made a website, and because the company treatment is too harsh, I want to leave. So when I leave that company, I want the server to automatically delete that site's contents. I've already done it using Scheduled Tasks, but it's too obvious. If it's discovered, it won't be good for anyone, so I want to see whether a batch file can help me achieve this function~ So I ask the experts for some guidance.
Floor 5 Posted 2005-04-12 00:00 ·  中国 湖北 宜昌 电信
高级用户
★★
Credits 677
Posts 194
Joined 2003-09-13 00:00
22-year member
UID 9778
Gender Male
Status Offline
In XP, it seems AUTOEXEC.BAT can't be executed automatically at startup, right?
Forum Jump: