Guest_imported
New member
- Jan 1, 1970
- 0
I have been trying to launch a tool such as Notepad from a broswer. I found this little snippet of code on the web:
<input type=button valued=notepad onclick="launchNotepad()">
<script language="javascript">
function launchNotepad() {
var wshell = new ActiveXObject("Wscript.shell"
wshell.run("notepad.exe",1)
}
</script>
My current error message from Internet Explorer Script Debugger is "Automation Server cannot create objet." I don't know if it is worth mentioning but I am using Microsoft's IIS. I tried qualifying the path to notepad: "C:||WINNT||notepad.exe". Note: I am using "\\" because the html is created inside my perl scripts.
So is it possible to create an ActiveXObject or what?? There must be some other underlying error because it hardly seems feasible that you cannot create active x objects.
Thanks
<input type=button valued=notepad onclick="launchNotepad()">
<script language="javascript">
function launchNotepad() {
var wshell = new ActiveXObject("Wscript.shell"
wshell.run("notepad.exe",1)
}
</script>
My current error message from Internet Explorer Script Debugger is "Automation Server cannot create objet." I don't know if it is worth mentioning but I am using Microsoft's IIS. I tried qualifying the path to notepad: "C:||WINNT||notepad.exe". Note: I am using "\\" because the html is created inside my perl scripts.
So is it possible to create an ActiveXObject or what?? There must be some other underlying error because it hardly seems feasible that you cannot create active x objects.
Thanks