🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #7538

Re: HELP: How does one identify a drive as a Novell network drive?

#7538
From: 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  )))
Technical Details
Message-ID: <kca.38.0@engin.umich.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!NO-NAME-broadband.med.umich.edu!kca
References: <2TP1wB4w165w@cibbs.UUCP> <lb00197.26@Corlac>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!NO-NAME-broadband.med.umich.edu!kca
From: kca@engin.umich.edu (Jon Van Oast)
Subject: Re: HELP: How does one identify a drive as a Novell network drive?
Message-ID: <kca.38.0@engin.umich.edu>
Date: Fri, 08 Jan 93 13:46:20 EST
Organization: UnderWorld Industries
Lines: 62
References: <2TP1wB4w165w@cibbs.UUCP> <lb00197.26@Corlac>
Nntp-Posting-Host: no-name-broadband.med.umich.edu
Lines: 62