+ Reply to Thread
Results 1 to 2 of 2

Thread: Get System Info(Drive Type) function

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2007
    Location
    Bangkok, Thailand
    Posts
    22

    Default Get System Info(Drive Type) function

    When using the Get System Info(Drive Type) function, If I use either C: or C:\ for the Drive Letter it returns $DRIVE_FIXED$ as it should. However, if I use a valid mapped drive for the Drive Letter, e.g. either Z: or Z:\, the function returns $DRIVE_NO_ROOT_DIR$. It returns the same thing if I use UNC notation \\ServerName\Drive.

    Is it me or is the function not working properly?

    This is SetupBuilder 8.0.4063.
    There are 10 kinds of people: those who understand binary and those who don't.

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Get System Info(Drive Type) function

    Peter,

    The "Drive Type" option is a wrapper around the GetDriveType Windows API. If you pass an UNC notation to GetDriveType, a trailing backslash is required. It should then return $DRIVE_REMOTE$ in your case.

    For example: \\ServerName\Drive\

    If you still get $DRIVE_NO_ROOT_DIR$, please see:

    http://support.microsoft.com/kb/244089

    Does this help?

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •