checking removable drives

xavier.bury at clearstream.com xavier.bury at clearstream.com
Thu Nov 3 02:29:47 EST 2005


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...

cheers
Xavier
http://monsieurx.com

use-revolution-bounces at lists.runrev.com wrote on 03/11/2005 07:55:23:

> On 11/2/05 11:42 PM, "Richard Gaskin" <ambassador at fourthworld.com> 
wrote:
> 
> > Could there be a downside to writing prefs or other such app-managed
> > data to a folder either within or at the same level as our program's
> > folder if we have permissions to do so?
> 
> Not that I can see - especially in Windows where some apps write to the
> AppData folder, some write to the Registry, some write local files, I 
think
> you should do what best suits you.
> 
> :-)
> 
> 
> Ken Ray
> Sons of Thunder Software
> Web site: http://www.sonsothunder.com/
> Email: kray at sonsothunder.com
> 



-----------------------------------------
To make communications with Clearstream easier, Clearstream has
recently changed the email address format to conform with industry
standards. The new format is 'firstname.familyname at clearstream.com'.

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