No Disk error & MountedDisks

xbury.cs at clearstream.com xbury.cs at clearstream.com
Tue Sep 21 05:21:39 EDT 2004


> Alternatively, has anyone got a 'MountedDisks' function for 
> Windows that would return the equivalent list as 'the 
> volumes' on a Mac?

Shell("Net share") or "net use" will list all mounted shares.

Also "subst" can be used. Very practical for ultra long paths.

To list the drives (physical) you have to use srvinfo from the
Reskit...

Cheers
Xavier

> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com 
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of 
> FlexibleLearning at aol.com
> Sent: Tuesday, September 21, 2004 10:54 AM
> To: use-revolution at lists.runrev.com
> Subject: No Disk error & MountedDisks
> 
> 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
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 


Visit us at http://www.clearstream.com
                                                          
IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message.

The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries.

END OF DISCLAIMER


More information about the use-livecode mailing list