VOGONS

Common searches


First post, by basilhs_s

User metadata
Rank Newbie
Rank
Newbie

good evening everybody. i want to invoke an exe file wihich will translate a file from 737 to windows greek character set. The command i used in dos was
437to928 input-file output-file

i created a batch file in windows 8 which contains the following code
C:\dosbox\DOSBox.exe 437to928.exe 1.txt 0.txt
exit

where 1.txt is the input file and 0.txt is the output file.
unfortunately the 437to928 prompts to give both the input and ouput file at run time.
i have installed dosbox in the c:\dosbox catalogue.

what am i doing wrong?
thank you very much

Reply 1 of 8, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Moving to DOSBox forum

Edit: oh I can't no admin power outside of dosbox and dos forum 😉

As for the problem, maybe make sure the text files are THERE. I guess you made it point to folder of the exe. For it to work both text files need to be there.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 2 of 8, by Davros

User metadata
Rank l33t
Rank
l33t

create a batch file trans.bat (should contain the following)
437to928 1.txt 0.txt

copy the bat file into the same folder as 437to928.exe
run dosbox then type
dir (you may have to change folder first if the exe isnt in c:\ )
to make sure the exe and the bat file are listed
then from the dos prompt type
trans

Guardian of the Sacred Five Terabyte's of Gaming Goodness

Reply 4 of 8, by basilhs_s

User metadata
Rank Newbie
Rank
Newbie

thanks all for your help. if i make a trans.bat file with the command 437to928 1.txt 0.txt i can execute it through dosbox environment easily.
from a windows shortcut everything goes ok if i give C:\dosbox\DOSBox.exe trans.bat. If however i change trans.bat as 437to928 %1 %2 in order to pass dynamically the name of the input and output file then from dosbox environment i can execute trans 1.txt 0.txt correctly but the same thing does not happen if i give the command C:\dosbox\DOSBox.exe trans.bat 1.txt 0.txt from a windows shortcut. is it possible for me to do it?

Reply 5 of 8, by Davros

User metadata
Rank l33t
Rank
l33t

you'd have to try it
what you could do is edit dosbox's autoexec.bat
and add the line
trans

ps:
should be
C:\dosbox\DOSBox.exe trans

dos never uses extensions for executables if you want to run edit.exe you type edit not edit.exe

Guardian of the Sacred Five Terabyte's of Gaming Goodness

Reply 7 of 8, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Edit the [autoexex] section of dosbox.conf.
I'd say that the dosbox installer makes a startmenu entry but there is no more startmenu in w8 😉

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 8 of 8, by Jorpho

User metadata
Rank l33t++
Rank
l33t++
Davros wrote:
you'd have to try it what you could do is edit dosbox's autoexec.bat and add the line trans […]
Show full quote

you'd have to try it
what you could do is edit dosbox's autoexec.bat
and add the line
trans

That's not ever going to work. That will execute trans.bat, but trans.bat can't be dynamic.

Try using this in your trans.bat instead:

echo 437to928 %1 %2 > gotrans.bat
dosbox gotrans.bat

That way DOSBox only has to take one argument. It should work.

EDIT: Silly mistakes.