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
"/Volumes".
is there an analog in XP?
thx.
p.
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:
C:
D:
F:
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...
hth,
nesa
hmmm...could work. ugly, but possibly functional :)
thanks for the thoughts...
p.
I'm sure Python does; i guess Java too...
f.e
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...
cheers
f.e
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 :(
p