[Ie programming] how to program clear ie Cache

Source: Internet
Author: User

ManualClear the IE cache (Temporary Internet Files, cookies, history records, form records, and Internet password). You can use the "Internet Options" Control Panel (for example.

 

 

If you wantCommand LineTo clear the iebuffer, you can use rundll32.exe to run the corresponding functions of Internet Options.

 

For example:

Temporary Internet Files (Temporary Internet Files)

Rundll32.exe inetcpl. CPL, clearmytracksbyprocess 8

Cookies

Rundll32.exe inetcpl. CPL, clearmytracksbyprocess 2

History)

Rundll32.exe inetcpl. CPL, clearmytracksbyprocess 1

Form data)

Rundll32.exe inetcpl. CPL, clearmytracksbyprocess 16

Passwords)

Rundll32.exe inetcpl. CPL, clearmytracksbyprocess 32

Delete all (delete all)

Rundll32.exe inetcpl. CPL, clearmytracksbyprocess 255

Delete all-"also delete files and settings stored by add-ons"

Rundll32.exe inetcpl. CPL, clearmytracksbyprocess 4351

 

Want to passClear ie by programmingCache, call the Win32 API function ShellExecute or CreateProcess to execute the preceding command line.

 

Example:

ShellExecute (null, _ T ("open"), _ T ("rundll32.exe"), _ T ("inetcpl. CPL, clearmytracksbyprocess 4351"), null, sw_shownormal );

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.