Hallo,
Korrektur:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Beschreibung der Seite</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<script type="text/javascript">
<!--
function execute_app(complete_app_path, args) {
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
try{
var file = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
file.initWithPath(complete_app_path);
var process = Components.classes["@mozilla.org/process/util;1"].createInstance(Components.interfaces.nsIProcess);
process.init(file);
process.run(true, args, args.length);
} catch(e2) {
alert(e2);
}
} catch(e1) {
alert(e1);
}
}
//-->
</script>
</head>
<body>
<button onclick="execute_app('C:\Winnt\explorer.exe', new Array('C:\www\docs\'))">StartApp</button>
</body>
</html>
viele Grüße
Axel