checking removable drives

Ken Ray kray at sonsothunder.com
Thu Nov 3 02:52:40 EST 2005


On 11/3/05 1:29 AM, "xavier.bury at clearstream.com"
<xavier.bury at clearstream.com> wrote:

> Ken, Richard,
> 
> it's true it's open for discussion but in general, programs that write
> prefs to the same app folder have
> the advantage that they can be moved anywhere later by the user.
> 
> The registry is practical in case you want to update with an installer so
> it's easy to see where the
> app was installed (not all users have the same "program files", "windows"
> or application (your app name)
> folder. 
> 
> Anyway, to get back to the subject to see if a drive in Windows is
> removable, look at this vbs example
> 
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html
> /sgfsosample.asp
> 
> There might be other ways for those who can't execute vbs scripts but it's
> the "common" way to script
> windows' objects...

... and unfortunately triggers Norton AntiVirus (and others) to display a
warning dialog about the "suspicious" behavior... VBS is very useful from
Rev, but as soon as you use the FileSystemObject, you trigger the anti-viral
software...


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list