Hello,
SHARE.EXE as executable, can also be executed in the AUTOEXEC.BAT or PROMPT.
In DOSBox version 0.47, or actual SVN, the DOS version reported is 5.0.
Then you need SHARE.EXE, of MSDOS 5.0 to run without error version.
On this site you can get discs MSDOS 5.0.
http://www.bootdisk.com/bootdisk.htm
Use the command expand.exe (disc 3) to expand the file share.ex_ (disc 1).
In Command Prompt of Windows you can:
C:\>EXPAND SHARE.EX_ SHARE.EXE
You can expand all executables (*.CO_ and *.EX_) you want to test and put into a folder, eg C:\DOS5.
At the end of dosbox.conf in [autoexec], you set this folder as a drive, for example Y:, and add it to PATH.
[autoexec]
...
MOUNT Y C:\DOS5
SET PATH=%PATH%;Y:\
# From here you can test all the commands MSDOS 5.0, which you desire.
SHARE /L:500 /F:5100
...
By using the same version being reported in DOSBOX, I believe many executable work, but not all will be compatible or expected results.
I hope this helps.
Scharf.