11-14-2007 05:14 AM
var oShell = new ActiveXObject("Shell.Application");
var commandtoRun = "calc.exe";
// Invoke the execute method.
oShell.ShellExecute(commandtoRun, "", "", "open", "1");
11-25-2007 05:50 PM
11-26-2007 03:51 AM
As you said your javascript "runs on the server-side" - it does not have access to any Browser related objects or Browser JavaScript APIs such as ActiveXObject.
11-26-2007 07:42 AM
01-22-2008 11:19 AM
11-26-2009 10:18 AM
11-27-2009 09:39 AM
11-30-2009 07:37 AM
var r = Runtime.getRuntime();
r.exec("calc.exe");
org.alfresco.error.AlfrescoRuntimeException: 10300137 Error during command servlet processing: 10300136 Failed to execute script 'workspace://SpacesStore/866c3275-531c-4823-8ad2-14f2a622baac': 10300135 ReferenceError: "Runtime" is not defined. (workspace://SpacesStore/866c3275-531c-4823-8ad2-14f2a622baac#13)
caused by:
org.alfresco.scripts.ScriptException: 10300136 Failed to execute script 'workspace://SpacesStore/866c3275-531c-4823-8ad2-14f2a622baac': 10300135 ReferenceError: "Runtime" is not defined. (workspace://SpacesStore/866c3275-531c-4823-8ad2-14f2a622baac#13)
11-30-2009 10:48 AM
12-01-2009 10:24 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.