Consider the following scenario. You use Windows Internet Explorer 7 on a Windows Vista-based computer. You run a script that uses the execCommand
function together with the SaveAs
command. In this scenario, the script does not save the Web page to the hard disk. Additionally, you receive the following error message when the script tries to save the file:
For your computer's security, this file was saved to your Temporary Internet Files folder.
Do you want to open this folder?
If you click Yes
, the following folder opens:
C:\Users\user_profile\AppData\Local\Microsoft\Windows\Temporary Internet Files\Virtualized
The saved Web page is not present in this folder.
This problem occurs when the protected mode feature is enabled in Internet Explorer 7 on a Windows Vista-based computer. The protected mode feature is applied for each security zone. By default, Internet Explorer 7 does not enable the protected mode feature for the Trusted sites
To work around this problem, you must include the URL of the Web page that you want to save by using a script in the Trusted Zones
list in Internet Explorer 7. Then, disable the protected mode feature for that zone. To do this, follow these steps:
- In Internet Explorer 7, click Internet Options on the Tools menu.
- Click the Security tab, select Trusted Sites, and then click Sites.
- Under Add this Web site to the zone type the URL that you want to save.
- Click Add, click Close, and then click OK.
- On the Security tab, click to clear the Enable Protected Mode (requires restarting Internet Explorer) check box.
- Restart Internet Explorer 7.
Additionally, you can manually save the file to work around this problem. To do this, follow these steps:
- Open Internet Explorer 7, and then press the ALT key.
- On the File menu, click Save As.
- Select a location to save the Web page, and then click Save.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.