"Access is denied" by executing .hta file with JScript on Windows XP x64

Posted by mem64k on Stack Overflow See other posts from Stack Overflow or by mem64k
Published on 2009-01-21T10:10:30Z Indexed on 2010/04/08 3:13 UTC
Read the original article Hit count: 258

Filed under:
|
|
|
|

I have a simple HTML (as HTA) application that shows strange behavior on Windows XP x64 machine. I getting periodically (not every time) error message "Access is denied." when i start the application. The same application on Windows XP 32bit runs just fine...

Does somebody has any idea or explanation?

Error message: Line: 18 Char: 6 Error: Access is denied. Code: 0 URL: file:///D:/test_j.hta

Here is the code of my "test_j.hta":

<html>

<head>
<title>Test J</title>

<HTA:APPLICATION 
     ID="objTestJ" 
     APPLICATIONNAME="TestJ"
     SCROLL="no"
     SINGLEINSTANCE="yes"
     WINDOWSTATE="normal"
>

<script language="JScript">

function main()
{
     //window.alert("test");
     window.resizeTo(500, 300);        
}

function OnExit()
{
    window.close();
}

</script>

</head>

<body onload="main()">
     <input type="button" value="Exit" name="Exit" onClick="OnExit()" title="Exit">
</body>
</html>

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html