[thelist] JavaScript to check /My Documents for Sharing

Peter Brunone (EasyListBox.com) peter at easylistbox.com
Thu Jul 28 10:06:13 CDT 2005


	If you can have your users select the appropriate security
setting for your domain (or have your sysadmins do it if it's in-house),
then you can use scripting instead of Java/ActiveX.

	Otherwise, perhaps an executable that they can download/run?

-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Mark Rees

> We're writing a web-based course which (among other things) asks users

> to check that the /My Documents folder is not set to shared on their 
> PC.  I'd like to make it as easy as possible for the user by providing

> an icon on the web page with a JavaScript which performs the check and

> gives a pop-up with the result.

This would be a massive security hole if it were possible, don't you
think? Imagine if every website you visit had javascript access to "My
Documents"...

I am presuming your web-based course is only supposed to work on
Windows, since you mention "my documents". So you could try writing an
activeX control to do this, which users could accept for download and
run. However it's not really that simple for the user any more if you do
this. You may also run into problems making it work on different
operating systems.

I think a set of easy to follow instructions are a better bet,

>
> Googling, I found nothing.  I can *just* read JS and don't write it 
> much at all, so it isn't my inclination to write it from scratch.  I 
> could modify a similar script if I could find one.
>
> Has anyone got a snippet that is close to what I am looking for?
>
> Sam





More information about the thelist mailing list