in order to take the computer name to a variable
you need to use the command in autoexec.bat
eg:
set computername=edp
after booting win98 you can type the following command to get the computer name
echo %computername%
I got the solution only after working with system at around 3 hours