Forums > MaxMSP

listing drives and partitions in XP

March 28, 2006 | 4:51 pm

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?



March 28, 2006 | 7:08 pm

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…


March 28, 2006 | 10:02 pm

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


March 28, 2006 | 10:12 pm

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


March 28, 2006 | 10:27 pm

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…



March 28, 2006 | 11:05 pm

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 :(


Viewing 6 posts - 1 through 6 (of 6 total)

Forums > MaxMSP