First post, by Kahenraz
- Rank
- l33t
I can see in a command prompt via SET that it is "COMSPEC=C:\COMMAND.COM". Where is this value being set?
I can see in a command prompt via SET that it is "COMSPEC=C:\COMMAND.COM". Where is this value being set?
Did you ever figure it out?
I could be mistaken but it sure looks like the initial value is hard coded into IO.SYS, at offset 0xa75c.
But I suppose it may be altered in some later stage (via registry perhaps?)
It probably haa to be set somewhere during the boot process before COMMAND.COM gets loaded, so that's a good guess. I think that my IO.SYS was actually compressed and I'm guessing that I dropped this file into a hex editor years ago and had this question when I couldn't find it in the data.
It can be altered by SHELL statement in CONFIG.SYS
In 2003, I voted in favour of joining the European Union. However, due to recent developments - especially the restrictions on cash usage - I'm hereby withdrawing my support. DOWN WITH THE EU!