![]() |
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-08-12 22:22 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » [Question] A system drive confirmation issue when writing batch files! |
| Printable Version 687 / 1 |
| Floor1 ajeef | Posted 2003-08-10 00:00 |
| 初级用户 Posts 14 Credits 167 | |
|
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*/ |
|
| Floor2 ajeef | Posted 2003-08-10 00:00 |
| 初级用户 Posts 14 Credits 167 | |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |