VOGONS


First post, by elior77

User metadata
Rank Newbie
Rank
Newbie

Hey !

I have an old special text editor, I would like to be able to open any file with this editor in dosbox...

I noticed that when I double click a file(lets call it prn) and associat it with dosbox, dosbox will mount the file path and try to run the file.

This is great but I need to open this file with this old special editor (that will run in win7 fullscreen only with dosbox

what dosbox does when double click on a prn file:
mount prn file path
try to run the prn file

what I would like to happen double click on a prn file:
mount prn file path
run a.exe filename.prn

a.exe = the editor

Thanks !

Last edited by elior77 on 2011-08-03, 07:09. Edited 1 time in total.

Reply 1 of 7, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Don't know why you're talking about dropbox, and why it's in the DEV forum. But you could start reading the DOSBOX readme of course.

Reply 2 of 7, by elior77

User metadata
Rank Newbie
Rank
Newbie

DOSBOX !! not dropbox 😀 sorry

After I tried google I found this place...

I read the readme - could not get it done.

can I get some help here ?

Thank you

Reply 3 of 7, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Don't know if it's possible at the moment (it's not how dosbox should be used).

Did you have a look at some of the dosbox frontends? They won't allow you to
double-click an arbitrary file type and run something in dosbox then, but if the
files are somehow associated (like 10 different files only) you may be better off
with a frontend than with what you currently have in mind.

Reply 4 of 7, by aqrit

User metadata
Rank Member
Rank
Member

associate the files type with a batch script that launches dosbox

lets say you want to use the dos version of pkunzip to unpack all your zip files (for some reason)

@echo off
start D:\programs\dosbox\dosbox.exe -c "mount x: d:\dosapps\pkzip " -c "mount y: %~dsp1 " -c x: -c "pkunzip.exe y:\%~snx1 "

I don't know how well long file names are handled...

Reply 5 of 7, by elior77

User metadata
Rank Newbie
Rank
Newbie

Thank you.

I dont understand...

"start D:\programs\dosbox\dosbox.exe"
will start dropbox

-c "mount x: d:\dosapps\pkzip "
will mount pkzip path as x:

-c "mount y: %~dsp1 "
will mount %~dsp1(??) as y:
what is %~dsp1??

-c x:
will change dir to x:

-c "pkunzip.exe y:\%~snx1 "
will run pkunzip for y:\%~snx1??
what is y:\%~snx1??

i need *.prn files to be opened under dosbox with a.exe...

thank you

Reply 7 of 7, by elior77

User metadata
Rank Newbie
Rank
Newbie
aqrit wrote:
associate the files type with a batch script that launches dosbox […]
Show full quote

associate the files type with a batch script that launches dosbox

lets say you want to use the dos version of pkunzip to unpack all your zip files (for some reason)

@echo off
start D:\programs\dosbox\dosbox.exe -c "mount x: d:\dosapps\pkzip " -c "mount y: %~dsp1 " -c x: -c "pkunzip.exe y:\%~snx1 "

I don't know how well long file names are handled...

IT WORKS !!! thank you very much !! 😀