Terry beat me to it. My only improvement is to use 'the drives' in a
startup handler and store it as a global to quickly obtain the full path at
any time.
put the drives into tList
repeat for each line tVolume in tList
if there is a folder tVolume&"/MM midi" then
put tVolume into g_Volume
exit repeat
end if
end repeat
You need "/" rather than "\", btw.
>put "abcdefghijklmnopqrstuvwxyz" into PotentialDrives
>repeat with i = 1 to 26
> if there is a file (char i of tPotentialDrives & ":\" & <filePath>)
then
> return (char i of PotentialDrives) -- use this to build
>your filePaths
> exit repeat
> end if
>end repeat
/H
Hugh Senior
The Flexible Learning Company
Consultant Programming & Software Solutions
Fax/Voice: +44 (0)1483.27 87 27
Email: [EMAIL PROTECTED]
Web: www.flexibleLearning.com
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.