On Fri, 5 Nov 1999, Imre Lebr wrote:

> Date: Fri, 5 Nov 1999 15:04:21 +0100 (MET)
> From: Imre Lebr <[EMAIL PROTECTED]>
> To: Wojtek Pilorz <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re: detecting dosemu
> 
> On Fri, 5 Nov 1999, Wojtek Pilorz wrote:
> 
> Thanx, this helps me very much. It seems that there is a file called
> detect.h which has everything i need. I will take this file to start
> working on a routine called InDOSemu(). This means i will mostly rewrite
> this to fit into my program. The result will of course be licensed
> under GNU GPL (as most of the FreeDOS utilities are).
> 
> For those who ask themselves what defrag has to do with DOSemu, well
> FreeDOS is supposed to be the standard DOS for DOSemu, and DOS and Linux
> use completely different file systems, it would not be very clean to have
> a DOSemu session running defrag killed by Linux and therefore i am first
> checking to see wether my program is running under DOSemu and if it is,
> my program will never even start up.  
Well, maybe defrag could work for DOS filesystems implemented as hdimages?
It would be sometimes really useful ...

Until recently, filesystems (or drives) visible under dosemu through
redirection (lredir or emufs.sys) were reported as network file systems,
and those using hdimages or partition access as local;
For example if I have C: disk from hdimage and E: disk added via lredir,
subst reported as follows:

E:\TTOH>subst k: c:\

E:\TTOH>subst
K: => C:\

E:\TTOH>subst i: e:\
Cannot SUBST a network drive

I am not sure how is emulated hdimage implemented in newer dosemu versions
reported by DOSEMU, as I have not tried that yet.

If people are using both (some kind of) DOS and Linux on their PCs,
using command like defrag where technically  possible would be 
sometimes useful.


Best regards,

Wojtek

> 
> Imre
> 
> 
> > On Thu, 4 Nov 1999, Imre Lebr wrote:
> > 
> > > Date: Thu, 4 Nov 1999 18:50:09 +0100 (MET)
> > > From: Imre Lebr <[EMAIL PROTECTED]>
> > > To: [EMAIL PROTECTED]
> > > Subject: detecting dosemu
> > > 
> > > I am currently working on defrag for FreeDOS and i was wondering if
> > > anybody on this list would know how i could detect if my program is
> > > running under dosemu.
> > > 
> > > Imre
> > > 
> > Please look at the isemu.c from src/commands directory.
> > 
> > If you do not have convenient access to dosemu source code,
> > please mail in privately and I will forward this file.
> > 
> > Best regards,
> > 
> > Wojtek
> > --------------------
> > Wojtek Pilorz
> > [EMAIL PROTECTED]
> > 
> > 
> > 
> 

Reply via email to