Storyline javascript code for folder checking

Aug 20, 2012

Hello all,

Is there a Javascript code that I can put as a trigger on my slide, that will:

1. Check to see if the folder c:\eTool exists

2. If yes, then delete it and then create it

3. If no, then create it

Many thanks indeed, Barry

4 Replies
Chris Walsh

No probs.  Office apps are tightly bound to the desktop and with VBA you can perform filesystem based functions such as checking the existence of a file or folder.

When I referred to LMS I actually meant websites in general.  If your website is set up in the client web browser's "intranet" or "trusted sites zone" then you might be able to get javascript to do what you want to do by creating an instance of the FileSystemObject (FSO) COM object.  Here is a site that might help: http://www.yaldex.com/wjscript/sgProgrammingFileSystemObject.htm

My guess however is that unless the website and client computer's security settings are set up in a very specific way, attempting to instantiate a FSO object will fail.

This discussion is closed. You can start a new discussion or contact Articulate Support.