listing drives and partitions in XP

Mar 28, 2006 at 4:51pm

listing drives and partitions in XP

In OSX, i can easily get the names of the drives and partitions using a
folder object (or Folder() in js) with the path
is there an analog in XP?



Mar 28, 2006 at 7:08pm

not quite analog, but you could use f.e’s doshack, and start mountvol xp
utility to get a list of available volumes.

you could execute mountvol|find “:”>temp_file.txt, and then load that file
in max and analize it.

temp_file.txt contains these strings:


wich is probaly all you need.

now that i wrote this, i have a feeling there’s something better around
there… Also, I’m not sure if this can list network resources…


Mar 28, 2006 at 10:02pm

hmmm…could work. ugly, but possibly functional :)
thanks for the thoughts…


Mar 28, 2006 at 10:12pm

I’m sure Python does; i guess Java too…


Mar 28, 2006 at 10:27pm

ugly, ugly, not so ugly at all :-)
I know you don’t like Java externals, Peter, but a “VOL n:” request to
my DOSHack external will give you the name of n: (if you can split if
from the end of the string it’s part of !!). Allright, i should write a
“what’s my disk name” function, to automatically do the job…



Mar 28, 2006 at 11:05pm

ugly only in that the suggestion requires writing to a text file, and
then reading that in.
and ugly in making this work with other stuff I have.
and ugly because I pretty much CAN’T use java externals – it’s not that
I don’t like them, specifications keep me from using them :(



You must be logged in to reply to this topic.