home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / msdos / programm / 11921 < prev    next >
Encoding:
Text File  |  1993-01-08  |  3.5 KB  |  75 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!caen!NO-NAME-broadband.med.umich.edu!kca
  3. From: kca@engin.umich.edu (Jon Van Oast)
  4. Subject: Re: HELP: How does one identify a drive as a Novell network drive?
  5. Message-ID: <kca.38.0@engin.umich.edu>
  6. Date: Fri, 08 Jan 93 13:46:20 EST
  7. Organization: UnderWorld Industries
  8. Lines: 62
  9. References: <2TP1wB4w165w@cibbs.UUCP> <lb00197.26@Corlac>
  10. Nntp-Posting-Host: no-name-broadband.med.umich.edu
  11. Lines: 62
  12.  
  13. In article <lb00197.26@Corlac> lb00197@Corlac (David Porco) writes:
  14. >Newsgroups: comp.os.msdos.programmer
  15. >Path: caen!uunet!stanford.edu!kronos.arc.nasa.gov!butch!enterprise!news
  16. >From: lb00197@Corlac (David Porco)
  17. >Subject: Re: HELP: How does one identify a drive as a Novell network drive?
  18. >Message-ID: <lb00197.26@Corlac>
  19. >Sender: news@enterprise.rdd.lmsc.lockheed.com
  20. >Nntp-Posting-Host: 129.197.235.11
  21. >Organization: Lockheed
  22. >References: <2TP1wB4w165w@cibbs.UUCP>
  23. >Date: Fri, 8 Jan 93 16:21:21 GMT
  24. >Lines: 33
  25. >In article <2TP1wB4w165w@cibbs.UUCP> root@cibbs.UUCP writes:
  26. >
  27. >>I am attempting to determine how to look at say teh DOS media descriptor for a
  28. >>drive in memory to determine if this is a network drive. I've posted about this
  29. >>before and got no response.
  30. >
  31. >>Anyone what to look for? I have used my resources regarding DOS programming and
  32. >>they never mention network drives.
  33. >
  34. >>Someone in here once posted that they were able to make a change to the media
  35. >>descriptor to make DOS this that a network drive was a hard drive. Obvoisuly
  36. >>this is possible, but what would information would one look for determining if
  37. >>a drive was on the network, or local?
  38. >
  39. >According to DOS PROGRAMMING by Kris Jamsa, you can use Int 21H function
  40. >4409H to determine if the drive, whose number is specified in BL is local
  41. >or remote(network).  If the function is successful, it clears the carry flag 
  42. >and assigns bit values to DX.  If bit 12 is 0 the drive is local, if bit 12 
  43. >is 1 then the drive is remote(network).
  44. >
  45. >>Any informaion regarding this would be appreciated.
  46. >>Mark
  47. >
  48. >Hope this helps.
  49. >.
  50. > --------------------------------/^\----------------------------------
  51. > The views expressed are my      | |    We make our own reality.
  52. > own, and could change at any    | |
  53. > moment.                         | |     )))))   )   )  ) ))))
  54. > --------------------------------| |      )   )  )))  ) )  )))
  55. > David V. Porco                  | |      ))))   )  )  )    ))))
  56. > Systems Programmer              | |    Certified Netware Engineer
  57. > --------------------------------| |----------------------------------
  58.  
  59. alternatively (if the above doesnt work, but it should), you can use the
  60. dos fullname function (interrupts escape me now, but i will get them if
  61. someone wants them) which will return "\\server\volume\path..." if it is
  62. a network and "drive:\path..." if local.
  63.  
  64. i am posting this because many people (even netware-versed ones) are 
  65. unaware of the \\server\volume convention in dos.  it works even in
  66. programming, which is GREAT if you are not sure if your user has a 
  67. certain drive mapped to wherever and dont want to go to the trouble of
  68. mapping it (or a temp one) yourself.  also, you can do dos commands like
  69. cd \\server\volume (heck, do it from your C: drive, ha ha).   some cmds
  70. (like dir) dont accept this format.
  71. ______________________________________________________________________________
  72. Bill the Cat | kca@caen.engin.umich.edu | UnderWorld Ind. UWI001, P.O.Box 4060
  73. Think freely | FINGER me for more info! | Ann Arbor, MI 48106-4060  USA  Earth
  74. (((  Emergency backup email, if/when kca dies: jon.van.oast@med.umich.edu  )))
  75.