VOGONS


First post, by whacky98

User metadata
Rank Newbie
Rank
Newbie

I currently have dosbox running successful for an application but have one issue. The clients application gets the computer name and when it does dosbox is reporting just a bunch of letters and characters. I need to be able to have it readback the name so the application will properly launch. Does anyone know the easiest way to get around this. So if my computer name is COMPUTERNAME I can make dosbox know that so it will report properly to my application to allow it to launch properly. If dosbox is not capable of this does anyone know another form of dosbox that will allow this.

Thanks

Reply 1 of 4, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

It depends on how the application reads the name, but it may be as simple as setting the appropriate environment variable, such as with the command:

SET COMPUTERNAME=BLAH

However, please keep in mind that DOSBox is intended to run DOS games, not applications, and your app may malfunction when run under DOSBox.

Reply 2 of 4, by whacky98

User metadata
Rank Newbie
Rank
Newbie

I tried this but do not know where to put this. Is it just under autoexec line?

Reply 3 of 4, by whacky98

User metadata
Rank Newbie
Rank
Newbie

As far a malfunction if it is able to run a dos game do not see why it would not work for a simple dos application. The computer name is the only thing seeming to be an issue right now. I have specified as you said under autoexec but it does nothing for it. The program is looking for a station name and spits out garbage as it can not find the station name.

Reply 4 of 4, by whacky98

User metadata
Rank Newbie
Rank
Newbie

FYI the following command fixed my issue

set CSNETNAME=COMPUTERNAME

Computer name would be that name you want your program to read,