You don't say if you're on 6, 7, or 8 (just "CFMX"). You may have a few
choices.

Since you're on Windows, you can use CF's integration with COM. In fact,
there's a specific page in the CF docs showing how to do what seems just
what you want:

        "Using the FileSystem object"
        http://livedocs.adobe.com/coldfusion/7/htmldocs/00001584.htm

There is likely also a way to get it using integration with Java.

BTW, I didn't remember this (though I recalled seeing something about this
in the past, and knew it would have something to do with either COM or Java
objects). Instead, I found it via a google search for:

        cfobject drive letters

Could have also done createobject instead of CFOBJECT (or both using 

Related to the page above on using come, if COM perfomrance is a concern,
you may want to check out this:

        ColdFusion MX: Using application scope to improve COM performance
        http://www.adobe.com/go/tn_18210

I'll point out also that the CFLIb.org site has a library related to
filesystem operations (http://www.cflib.org/library.cfm?ID=8), though none
seems to do exactly what you want.

Finally, the search also turned up that in CF8 you can do it using this code
Ben's put together:

        
http://www.forta.com/blog/index.cfm/2007/5/30/GetDriveInfo-UDF-Powered-By-NE
T

Talk about several ways to skin a cat. :-)

/charlie (your "CF librarian")

-----Original Message-----
From: houcfug@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Angeli Wahlstedt
Sent: Tuesday, January 08, 2008 12:11 PM
To: houcfug@googlegroups.com
Subject: [houcfug] Find list of drive letters?


Hiya, folks -- is there a way to find a list of drive letters via CFMX on a
server running Windows, the way the tag CFDirectory finds a list of files? I
don't care about mapped drives -- I'm just curious about local drives.

Thanks,

-- Angeli Wahlstedt, IdeaSculpt LLC






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Houston ColdFusion 
Users' Group" discussion list.
To unsubscribe, send email to [EMAIL PROTECTED]
For more options, visit http://groups.google.com/group/houcfug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to