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-12 19:48
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » [Question] A system drive confirmation issue when writing batch files! View 683 Replies 1
Original Poster Posted 2003-08-10 00:00 ·  中国 浙江 湖州 电信
初级用户
Credits 167
Posts 14
Joined 2003-08-02 00:00
23-year member
UID 7965
Gender Male
Status Offline
Question: some people’s default-installed system is not on drive C: (that is, the root directory of the active partition), and some people also install multiple systems. Will that affect reading it?

@echo off
attrib -h -s -r boot.ini
type c:\boot.ini >os.txt /*it’s the C: here—what if someone else didn’t install on drive C:? PATH doesn’t seem to help here, use a variable instead?*/
pause
attrib +s +h boot.ini
del c:\os.txt /a /*it’s the C: here—what if someone else didn’t install on drive C:? PATH doesn’t seem to help here, can a variable be used instead*/
Floor 2 Posted 2003-08-10 00:00 ·  中国 浙江 湖州 电信
初级用户
Credits 167
Posts 14
Joined 2003-08-02 00:00
23-year member
UID 7965
Gender Male
Status Offline
Forum Jump: