realbasic-nug
[Top] [All Lists]

Re: Getting number of devices

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Getting number of devices
From: Fargo Holiday <fargo at rpgportland dot com>
Date: Fri, 29 Jun 2007 09:29:42 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <p06240803c2aac4b0f610 at [62 dot 161 dot 36 dot 122]>
What about Aaron Ballman's WFS?
Look in the FileProcessing section of it and you'll see GetDriveStrings, 
which I imagine can get you part of the way there.

For volumes mounted to folders you'll probably need some additional 
declares.
Maybe this will help-
http://www.news2news.com/cgi-bin/w32index.php?qmode=FUNC&keyword=mount%20point&base=www.news2news.com/vfp/&exclude=984&PHPSESSID=db1b545284995842dbc229d0508a9ce7


Jean-Luc Arnaud wrote:
> Hello to all of you,
>
> Does anyone know a DLL call returning the number 
> and/or a list of all devices connected to a PC 
> Computer ?
> I'm looking for something like "mountvol /l" (DOS 
> command, try it in Execute ... CMD and then 
> mountvol /l), but I don't want to use a DOS 
> Command. Why ? Because, in particular, Vista and 
> XP are returning information in a different text 
> format. It would probably be the same case with 
> different foreign systems. However, I'm 
> developing an international app.
>
> Please, note that RB Command "VolumeCount" does 
> only return the number of mounted volumes. When 
> you have more than 26 devices, it does not see 
> the additional ones, nor it does see mounted 
> volume points. (FYI, mounted volume points are 
> volumes pointing to folders on NTFS HD. Volumes 
> may keep a letter or not. I.E., let say I have an 
> external disk mounted as E:, it could be mounted 
> too as mounted volume point in a 'MyExternalDisk' 
> folder and be accessed by E: or 
> C:\MountedPoints\MyExternalDisk, provided that 
> MountedPoints is a folder containing all my 
> mounted points. But it could be unmounted from E: 
> and be accessible only through its mounted point 
> path).
>
> Any helpful information welcome.
>
> Thanks
>   
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>