VOGONS


First post, by apollo16

User metadata
Rank Newbie
Rank
Newbie

I have installed DosBox 0.61 on Win2000 Sp4 in order to permit me to run my old Dos program: IBM Filing Assistant 2.0 where I have scheduled over 2000 articles with its parts fro my hobbies because this program run only under DOS or Windows 98 operating system and not under Win2000 or Windows Xp.
Your program is a light and easy program but don't permit me to run it.
My program have a protection that when I installing it, the program create in the root of hard disk a file with attrubite HSRA (Hidden, System, Read Only, Archive) activate. If this attribute are OFF the program don't run also in DOS.
Your program when open the Box show this file with its attribute OFF, also if they are ON, and the command "Attrib" don't exist in the Box.
In my opinion is a great improvement to maintain the exact attributes of each files of the directory mounted.
In this mode, I hope, my program and other can be running on Win2000 in dos emulating.
I have searched lots and lots freeware dos program emulator that permit me to run my program but for nothing.
I hope that you can help me, and you can me tell me an answer. Thanks.

An other suggestion is: permit user to create a file-batch in Win2000, in order to permit he, cliccking from Icon of batch on desktop, to create a
Dos-Box, mount a directory choosed from user, and run the program or game that user have choosed.
In this mode user can create an icon for each program or game DOS compatibility and cliccking them the game choosed starts !
He have on desktop more icon for more game.


Best Regards Andrea

Reply 1 of 15, by iampiti

User metadata
Rank Member
Rank
Member

An other suggestion is: permit user to create a file-batch in Win2000, in order to permit he, cliccking from Icon of batch on desktop, to create a
Dos-Box, mount a directory choosed from user, and run the program or game that user have choosed

You can already do this. Read the README. It's basically "dosbox executablefile.exe".
You can also make dosbox execute certain things at the start putting them in the [autoexec] section of dosbox.conf file. It works roughly like autoexec.bat

Iampiti

Reply 2 of 15, by apollo16

User metadata
Rank Newbie
Rank
Newbie

I am sorry to disturb you another time but you have answered me this: "You can already do this. Read the README.", but I have printed and readed all the README and there are not writed how I can maintain a file with its attributes HSRA (Hidden,System,Read, Archive) active in DosBox when these attributes of this file under Win2000 are already set to ON.
(The file infact is invisible to system under Win2000, but for DoxBox is visible and for this reason the Program IBM Filing Assistant don't run). Prove also you if you will want be sure that I told you.
DosBox don't respect original files attribute. It make all file visible and shows all files!!

You wrote also me:

"It's basically "dosbox executablefile.exe".
You can also make dosbox execute certain things at the start putting them in the [autoexec] section of dosbox.conf file. It works roughly like autoexec.bat"

Yes I can put in section "Autoexec of DosBox.Conf" certain things as you told me but if I put the command:
"attrib +h +s +r +a c:\file.sys"

your program answers me when I run it:

"Illegal command: Attrib."

and the file.sys is visible (without attribute ON) and my program for this reason don't run.

How can I do to run my old 16 bit program under Win2000 ??
I have thousand of records scheduled with this old old program. 🙁(((

Thank you very much or your help and your patience.

Andrea

Reply 3 of 15, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Hi apollo16,

You are correct, it appears that DOSBox does not respect file attributes such as Hidden and System (and perhaps also the Archive and Read-Only attribute). I don't think there is anything you can do about this. The best you can do is to ask/hope that a developer will look into this problem and solve it for an upcoming version.

Some DOS commands like DIR and TYPE are built into the DOS command interpreter (the program that displays the C:> prompt). DOSBox provides its own set of built-in commands (which you can see by typing HELP). Unfortunately, the ATTRIB command is also not supported by DOSBox, and that is why DOSBox gives you the "Illegal command" message.

I do not think DOSBox is able to run "IBM Filing Assistant" - at least for now. I tried to install it in my DOSBox, but all I got was a blue window. Similar, trying to run it from Windows XP, also just gave me a blue screen.

Perhaps in a later version with better support for those file attributes - Sorry!

If your data is valuable to you, perhaps you should try Microsoft Virtual PC? You can download a 30 (or 60?) days free trial version from www.microsoft.com. Unlike DOSBox, Virtual PC emulates a complete PC, so it can run real MS-DOS, and not just a subset like DOSBox.
--
MiniMax

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 5 of 15, by iampiti

User metadata
Rank Member
Rank
Member

I was answering at your second suggestion (being able to create a batch file for every program). Just look at the quote 😀
As others have said it seems dosbox doesn't allow to change/respect the attributes of the files.

Iampiti

Reply 6 of 15, by apollo16

User metadata
Rank Newbie
Rank
Newbie

Thank you "MiniMax" for your council.
The Blue Screen appear because Program IBM Filing Assistant 2.0 test the file "File.SyS": If it exist in root C:\ and if their attributes are ON.
If it doesn't exist or don't have attributes ON the program go into protection mode showing a blue screen and don't run.

Best Regards

Andrea

Reply 7 of 15, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Don't know if it helps, but try to change the byte at
0x2e31 in file.exe from 0xf9 to 0x01.
This should render the program usable with dosbox as
well as XP (maybe still not usable in the way you need
it, but give it a try).

wd

Last edited by wd on 2004-05-24, 09:58. Edited 1 time in total.

Reply 8 of 15, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Great work wd - what did you do? Dissassembled the code, and jumped around the file check?

Attachments

  • Screendump.png
    Filename
    Screendump.png
    File size
    21.66 KiB
    Views
    2830 views
    File comment
    [Screendump] It works - now if just my Italian was much better :)
    File license
    Fair use/fair dealing exception

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 9 of 15, by apollo16

User metadata
Rank Newbie
Rank
Newbie

😀))))))) Thank you very much WD !! YuhhhhUuuuu !!! Yeeeaahhh 😀)

I'm very very happy.
I don't know what you have done, but is so as I want the program run.
Very Great Great Work!!
DosBox + Filing Assistant Patched and all my problems are solved thanks to you.

I disturb you if I ask an other favor ??
You have done much for me and I have a lot of shame to ask you an other pleasure:

IBM Assistant 2.0 is a series of lots IBM programs that I use but the most used from me are
Filing Assistant that you have already patched (was difficult searching the protection ???)
and I use it so much because I have scheduled lots articles.
The data can be searched with this program but if I want stamp a table of these articles it don't stamp

very well infact for this design there is the other program that I use so much: Reporting Assistant 2.0
Unfortunately this prgram have the same protection of Filing Assistant.
When I run it, the program search the file REPORT.sys in root with its attributes set to on.
I have proved to see the same byte as Filing Assistant but in this case there isn't 0xf9 & 0x01 in this position and I am not a programmer. I don't know how I can do the patch.

Can please help me again ?? Don't worry if you can't.
Thank you very much.

Best Regards
Andrea

Reply 10 of 15, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

> Dissassembled the code, and jumped around the file check?

No, just jumped out of the infinity-loop.

> When I run it, the program search the file REPORT.sys in root with its attributes set to on.

Do you know if this is the only protection? I don't know the
program (and language...), so i can't tell if they do additional
checks in a printing routine or so.

> I don't know how I can do the patch.

ofs 0x14273 from 0x72 -> 0xeb
A good universal try is searching 00 00 d1 e8 72
and replacing the 72 by eb (if you have more programs...😉

wd

Last edited by wd on 2004-05-24, 09:59. Edited 1 time in total.

Reply 11 of 15, by apollo16

User metadata
Rank Newbie
Rank
Newbie

ALL Right!!!
The program run very very well as I want.
You have permit me to use again the two programs of series Assistant, that I have, that I use more of all.
Thank you very much you are been very gentile and I don't know how I can return a favour.

Thanks also for suggestion: "ofs 0x14273 from 0x72 -> 0xeb A good universal try is searching 00 00 d1 e8 72
and replacing the 72 by eb (if you have more programs..." I have them but I don't know how I can modify it I am not a programmer and for me what are writing is " Antique Egyptian :-; 😒 "

Thanks very much

Best Regards Andrea

Reply 12 of 15, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

> but I don't know how I can modify it I am not a programmer and for me
> what are writing is " Antique Egyptian :-; "

You can use a hex-editor to search for hexstrings (antique egyptian)
and to modify binary data. Those hieroglyphs are just hexadecimal
values that represent code.

wd

Reply 13 of 15, by apollo16

User metadata
Rank Newbie
Rank
Newbie

OK I search an Hex Editor Program and I will prove to search in my other IBM Assistant program to modify string as you have suggest me.
I will hope that run!

Thank you very much
You are a good great cyber-friend

Bye
Andrea

Reply 14 of 15, by mirekluza

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

@Apollo16 (Andrea): I removed both IBM programs from here. WD solved your problem and I also think that they are copyrighted software (which should not be here).
If you have similar problems in future, I recommend you to put such thigs elsewhere and link to that page (but even this should not be done too often).

Mirek