1

I am trying to execute .bat file in the DOSBox:

It starts with the following lines:

echo off
cls
if exist %1:\BLA\z.exe goto custom      
if not exist d:\BLA\z.exe goto error
APPEND d:\BLA;d:\BLA\SUBFOLDER /X:ON /PATH:ON
goto start

And it results in:

Illegal command: APPEND.

As I understand the issue is that DOSBox does not support APPEND command.


How can I add missing DOS commands to the DOSBox? Can I somehow extract them from FreeDos project? Is it possible to extract required file / files, without installing FreeDos in virtual machine (and then copy-pasting required files)?

4
  • Append was dropped in FreeDos.
    – harrymc
    Commented Jan 16, 2023 at 16:03
  • @harrymc I was not aware. What is the suggested way of rewriting batch files that contains calls to Append?
    – matandked
    Commented Jan 16, 2023 at 17:16
  • could you just simply add d:\bla;d:\bla\subfolder to the path? as in path=%path%;d:\bla;d:\bla\subfolder ?
    – jarnosz
    Commented Jan 16, 2023 at 21:40
  • Thank you for suggestion. I've tried to do so, before creating this question, but application after starting is not responding. Thus I am afraid I made a mistake and I prefer to have append command instead. - There are few batch files that calls append commands (combined with if statements) before running the exe.
    – matandked
    Commented Jan 17, 2023 at 9:37

1 Answer 1

0

You can download different versions of Microsoft DOS from winworldpc.com here. You can then install/extract append.exe and copy it to your DOSBox. I would expect it to work, but not sure. There is not harm in trying.

On a side note, technically this would be copyright infringement. However, I cant imagine Microsoft isnt aware of this popular site that has been online for almost 20 years. I assume they just dont care about unsupported software this old being copied.

5
  • Will it be possibile to instead compile append from FreeDos project? Od even simplier - find somehow and old version of FreeDos With append and copy it to the DosBox? Or maybe DosBox team would consider adding append to their project?
    – matandked
    Commented Jan 17, 2023 at 9:40
  • @matandked I dont know if FreeDOS has append. I havent used it in ages. If DOSBox doesnt have append now, I doubt they will add it. However, you can definitely get it from MS-DOS from the site I linked to in my answer.
    – Keltari
    Commented Jan 17, 2023 at 12:07
  • 1
    I have not tested it, but I've found append listed here: ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.3/…
    – matandked
    Commented Jan 17, 2023 at 16:05
  • 1
    Direct download link to append from FreeDos: ibiblio.org/pub/micro/pc-stuff/freedos/files/repositories/1.3/…
    – matandked
    Commented Jan 17, 2023 at 16:07
  • 1
    And on another page, I've found that to use append with DosBox i should ver set 6 22
    – matandked
    Commented Jan 17, 2023 at 16:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .