Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to delete the IE history.
It located in that path.

C:\Documents and Settings\admin\Local Settings\History

If i try to delete means it provide system not find the path.
and i can't able to delete ..

can you help me .

i am using msdev editor
Posted

1 solution

If you say "system not find the path", it means you may not have enough privileges. You need to run your application with elevated privileges. On Windows 7 (Vista?) logging in with administrator account is not enough.

See this article for nearly all available options to run your program as administrator: http://www.sevenforums.com/tutorials/11841-run-administrator.html[^].

Back to deleting files, you may need to take ownership of the directory and give yourself the right to delete. See this discussion: http://www.howtogeek.com/howto/windows-vista/how-to-delete-a-system-file-in-windows-vista/[^].

Programmatically, you can run the commands takeown and cacls using Windows API CreateProcess. You can put the commands in one batch file, substitute username and directory name and run the file using CreateProcess.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900