No Disk error & MountedDisks
FlexibleLearning at aol.com
FlexibleLearning at aol.com
Tue Sep 21 04:54:13 EDT 2004
When testing for file and/or directory existence, has anyone figured a way
to avoid the 'No disk' system error mesage in Windows?
'Catch' does not trap system errors...
try
get (there is a file tPath) # Poof!
catch errorNum
get false
end try
return it
Alternatively, has anyone got a 'MountedDisks' function for Windows that
would return the equivalent list as 'the volumes' on a Mac?
if (cr& char 1 to 2 of tFilePath) is in cr& mountedDisks() then ...
Very annoying!
/H
More information about the use-livecode
mailing list