How does C read and write DOS variables?
Or, how can a program written in C read/modify DOS variables or assign the return value to a DOS variable?
For example, there is a variable in DOS: vCdrom=D:, but I just want the first character. C can use the left() function to intercept, but there seems to be no such command in DOS.
Or, how can a program written in C read/modify DOS variables or assign the return value to a DOS variable?
For example, there is a variable in DOS: vCdrom=D:, but I just want the first character. C can use the left() function to intercept, but there seems to be no such command in DOS.
