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.
Back to the top
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 zone.
Back to the top
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:
| 1. | In Internet Explorer 7, click Internet Options on the Tools menu.
|
| 2. | Click the Security tab, select Trusted Sites, and then click Sites.
|
| 3. | Under Add this Web site to the zone type the URL that you want to save. |
| 4. | Click Add, click Close, and then click OK.
|
| 5. | On the Security tab, click to clear the Enable Protected Mode (requires restarting Internet Explorer) check box.
|
| 6. | Restart Internet Explorer 7. |
Additionally, you can manually save the file to work around this problem. To do this, follow these steps:
| 1. | Open Internet Explorer 7, and then press the ALT key.
|
| 2. | On the File menu, click Save As.
|
| 3. | Select a location to save the Web page, and then click Save.
|
Back to the top
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Back to the top