Welcome, Guest. Please login or register.

Author Topic: OS library call to get list of drives / assigns  (Read 943 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline gazspTopic starter

  • Jr. Member
  • **
  • Join Date: Sep 2004
  • Posts: 71
    • Show only replies by gazsp
    • http://realitydesign.asn.org.uk
OS library call to get list of drives / assigns
« on: October 26, 2005, 12:32:40 PM »
Does anybody know an easy way to get a list of drives or assigns on an OS3 machine?
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: OS library call to get list of drives / assigns
« Reply #1 on: October 26, 2005, 12:43:22 PM »
Read dos.library autodoc for functions:

dos.library/LockDosList
dos.library/NextDosEntry
dos.library/UnLockDosList

Remember that you shouldn't call any high level functions (esp not dos I/O!) while keeping the dos list lock. In most cases you need to build a list to memory and only process it after UnLockDosList.
 

Offline gazspTopic starter

  • Jr. Member
  • **
  • Join Date: Sep 2004
  • Posts: 71
    • Show only replies by gazsp
    • http://realitydesign.asn.org.uk
Re: OS library call to get list of drives / assigns
« Reply #2 on: October 26, 2005, 12:47:43 PM »
Cool, cheers dude.