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*/
@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*/

