Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automation Server cant create object
Message
From
19/04/2002 15:25:24
 
 
To
11/04/2002 10:34:19
General information
Forum:
Internet
Category:
Javascript
Miscellaneous
Thread ID:
00643742
Message ID:
00647035
Views:
18
>I am trying to create a fileSystemObject in javascript I am running the following code.
>
><HTML><HEAD>
><input type="button" value="test" onclick="javscript:test()">
><SCRIPT LANGUAGE="JavaScript">
>function test()
>{
>  myActiveXObject = new ActiveXObject("Scripting.FileSystemObject");
>  file = myActiveXObject.GetFile("c:\\test.txt");
>  file.Delete();
>}
></SCRIPT>
></HEAD>
></HTML>
>
>but I am getting the following Error "Automation Server Cannot Create Object"
>The error is happening on this line:
> myActiveXObject = new ActiveXObject("Scripting.FileSystemObject");
>anyone has any ideas????
>thanks

Hi,
This happens because of the browser security settings, it doesn't allow access to local file system.
Alex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform