I have seen some similar questions but most are related to sharepoint which I am not using.
I have an iframe which has its source url set to a folder on my network. In this folder users can create subfolders related to cases using the case number.
I would like the iframe to point to the subfolder if it exists or if it doesnt exsist it should point to the main folder.
I have tried the following code on a webpage and although it is not ideal it is in the right direction (although there are issues with downloading activex objects)
var fso = new ActiveXObject("Scripting.FileSystemObject");
folderBool = fso.FolderExists("d:\\searchfolder");
but this will not work on the the onload of the CRM form (error message: "Automation Server cannot create object")