🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.msdos.programmer
4 messages
4 total messages Started by root Thu, 07 Jan 1993 17:45
HELP: How does one identify a drive as a Novell network drive?
#7518
Author: root
Date: Thu, 07 Jan 1993 17:45
19 lines
1191 bytes
I am attempting to determine how to look at say teh DOS media descriptor for a
drive in memory to determine if this is a network drive. I've posted about this
before and got no response.

Anyone what to look for? I have used my resources regarding DOS programming and
they never mention network drives.

Someone in here once posted that they were able to make a change to the media
descriptor to make DOS this that a network drive was a hard drive. Obvoisuly
this is possible, but what would information would one look for determining if
a drive was on the network, or local?

Any informaion regarding this would be appreciated.
Mark

----
Club InSaNiTy BBS   |   BBS:+1 416 691 0679 |   root@cibbs.UUCP
DataSoft Consulting | Voice:+1 416 691 5529 |   uunorth!cibbs!root
Mark Buckaway       | Toronto, Ont. CANADA  |   1@4653 (WWIVnet)
Re: HELP: How does one identify a drive as a Novell network drive?
#7539
Author: Janos Haide
Date: Fri, 08 Jan 1993 16:14
56 lines
2239 bytes
In article <2TP1wB4w165w@cibbs.UUCP> root@cibbs.UUCP writes:
>I am attempting to determine how to look at say teh DOS media descriptor for a
>drive in memory to determine if this is a network drive. I've posted about this
>before and got no response.
>
>Anyone what to look for? I have used my resources regarding DOS programming and
>they never mention network drives.
>
>Someone in here once posted that they were able to make a change to the media
>descriptor to make DOS this that a network drive was a hard drive. Obvoisuly
>this is possible, but what would information would one look for determining if
>a drive was on the network, or local?
>
>Any informaion regarding this would be appreciated.
>Mark
>
>----
>Club InSaNiTy BBS   |   BBS:+1 416 691 0679 |   root@cibbs.UUCP
>DataSoft Consulting | Voice:+1 416 691 5529 |   uunorth!cibbs!root
>Mark Buckaway       | Toronto, Ont. CANADA  |   1@4653 (WWIVnet)

Mark,

Here is a code snippet from Al Stevens' DFlat library that might help.

 /* ---- test for network or RAM disk ---- */
 regs.x.ax = 0x4409;     /* IOCTL func 9 */
 regs.h.bl = dr+1;
 int86(DOS, &regs, &regs);
 if (!regs.x.cflag)    {
     if (regs.x.dx & 0x1000)
         strcat(drname, " (Network)");
     else if (regs.x.dx == 0x0800)
         strcat(drname, " (RAMdisk)");
 }

Now, how do you know it's a Novell network drive :
Check if you'se running on top of a Novell network.

If you're sure that you're running Netware, here's an alternate method:

mov ax, e900
mov dx, drivenum ; a: = 0 ...
int 21

on return ah has the drive flags:
bit 0: perm. handle
bit 1: temp handle (both mean NetWare drives)
bit 7: local drive

Hope this helps,
Janos
jhaide@novell.com

disclaimer!
 
Re: HELP: How does one identify a drive as a Novell network drive?
#7534
Author: David Porco
Date: Fri, 08 Jan 1993 16:21
33 lines
2056 bytes
In article <2TP1wB4w165w@cibbs.UUCP> root@cibbs.UUCP writes:

>I am attempting to determine how to look at say teh DOS media descriptor for a
>drive in memory to determine if this is a network drive. I've posted about this
>before and got no response.

>Anyone what to look for? I have used my resources regarding DOS programming and
>they never mention network drives.

>Someone in here once posted that they were able to make a change to the media
>descriptor to make DOS this that a network drive was a hard drive. Obvoisuly
>this is possible, but what would information would one look for determining if
>a drive was on the network, or local?

According to DOS PROGRAMMING by Kris Jamsa, you can use Int 21H function
4409H to determine if the drive, whose number is specified in BL is local
or remote(network).  If the function is successful, it clears the carry flag 
and assigns bit values to DX.  If bit 12 is 0 the drive is local, if bit 12 
is 1 then the drive is remote(network).

>Any informaion regarding this would be appreciated.
>Mark

Hope this helps.
.
 --------------------------------/^\----------------------------------
 The views expressed are my      | |    We make our own reality.
 own, and could change at any    | |
 moment.                         | |     )))))   )   )  ) ))))
 --------------------------------| |      )   )  )))  ) )  )))
 David V. Porco                  | |      ))))   )  )  )    ))))
 Systems Programmer              | |    Certified Netware Engineer
 --------------------------------| |----------------------------------
Re: HELP: How does one identify a drive as a Novell network drive?
#7538
Author: Jon Van Oast
Date: Fri, 08 Jan 1993 18:46
62 lines
3682 bytes
In article <lb00197.26@Corlac> lb00197@Corlac (David Porco) writes:
>Newsgroups: comp.os.msdos.programmer
>Path: caen!uunet!stanford.edu!kronos.arc.nasa.gov!butch!enterprise!news
>From: lb00197@Corlac (David Porco)
>Subject: Re: HELP: How does one identify a drive as a Novell network drive?
>Message-ID: <lb00197.26@Corlac>
>Sender: news@enterprise.rdd.lmsc.lockheed.com
>Nntp-Posting-Host: 129.197.235.11
>Organization: Lockheed
>References: <2TP1wB4w165w@cibbs.UUCP>
>Date: Fri, 8 Jan 93 16:21:21 GMT
>Lines: 33
>In article <2TP1wB4w165w@cibbs.UUCP> root@cibbs.UUCP writes:
>
>>I am attempting to determine how to look at say teh DOS media descriptor for a
>>drive in memory to determine if this is a network drive. I've posted about this
>>before and got no response.
>
>>Anyone what to look for? I have used my resources regarding DOS programming and
>>they never mention network drives.
>
>>Someone in here once posted that they were able to make a change to the media
>>descriptor to make DOS this that a network drive was a hard drive. Obvoisuly
>>this is possible, but what would information would one look for determining if
>>a drive was on the network, or local?
>
>According to DOS PROGRAMMING by Kris Jamsa, you can use Int 21H function
>4409H to determine if the drive, whose number is specified in BL is local
>or remote(network).  If the function is successful, it clears the carry flag 
>and assigns bit values to DX.  If bit 12 is 0 the drive is local, if bit 12 
>is 1 then the drive is remote(network).
>
>>Any informaion regarding this would be appreciated.
>>Mark
>
>Hope this helps.
>.
> --------------------------------/^\----------------------------------
> The views expressed are my      | |    We make our own reality.
> own, and could change at any    | |
> moment.                         | |     )))))   )   )  ) ))))
> --------------------------------| |      )   )  )))  ) )  )))
> David V. Porco                  | |      ))))   )  )  )    ))))
> Systems Programmer              | |    Certified Netware Engineer
> --------------------------------| |----------------------------------

alternatively (if the above doesnt work, but it should), you can use the
dos fullname function (interrupts escape me now, but i will get them if
someone wants them) which will return "\\server\volume\path..." if it is
a network and "drive:\path..." if local.

i am posting this because many people (even netware-versed ones) are 
unaware of the \\server\volume convention in dos.  it works even in
programming, which is GREAT if you are not sure if your user has a 
certain drive mapped to wherever and dont want to go to the trouble of
mapping it (or a temp one) yourself.  also, you can do dos commands like
cd \\server\volume (heck, do it from your C: drive, ha ha).   some cmds
(like dir) dont accept this format.
______________________________________________________________________________
Bill the Cat | kca@caen.engin.umich.edu | UnderWorld Ind. UWI001, P.O.Box 4060
Think freely | FINGER me for more info! | Ann Arbor, MI 48106-4060  USA  Earth
(((  Emergency backup email, if/when kca dies: jon.van.oast@med.umich.edu  )))
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads