VOGONS


First post, by Kahenraz

User metadata
Rank l33t
Rank
l33t

I can see in a command prompt via SET that it is "COMSPEC=C:\COMMAND.COM". Where is this value being set?

Last edited by Kahenraz on 2024-09-22, 18:53. Edited 1 time in total.

Reply 1 of 3, by mr.cat

User metadata
Rank Member
Rank
Member

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?)

Reply 2 of 3, by Kahenraz

User metadata
Rank l33t
Rank
l33t

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.

Reply 3 of 3, by Grzyb

User metadata
Rank l33t
Rank
l33t

It can be altered by SHELL statement in CONFIG.SYS

Kiełbasa smakuje najlepiej, gdy przysmażysz ją laserem!