Clear Cache and Clear Clipboard Commands

Recently I need to do a couple of things programmatically for a build task and wanted catalog the command to make it easier for me and others to find them in the future.

Clear Internet Explorer Cache

This command is very useful if you are developing a SharePoint feature that relies on JavaScript.  I created one that worked with the JSGrid in Microsoft Project Server to keep users from being able to submit their Timesheet if the date they entered hours on was past the end date of the Task or if the sum of hours entered for that task was greater than the available hours.  So, this was a JavaScript solution to inspect items on the JSGrid on the Timesheet page.  To make sure I was getting the most current version of the JavaScript files I used the following command as a Post Build event in Visual Studio to clear the browser cache before the debug session started.

C:\Windows\System32\rundll32.exe InetCpl.cpl,ClearMyTracksByProcess 8

Clear The Windows Clipboard

This one I came across when trying to figure out why cut/paste operations on my install of Windows 7 is so slow.  Unfortunately this didn’t speed up the clipboard but I wanted to keep it around anyway.  Comes in handy when I forget to clear a photo or large document from the clipboard.  Here is the command.

cmd.exe /c “echo off | clip”

Share Yours!

Do you have a command/snip-it that helps you get things done?  Share them in the comments.

blog comments powered by Disqus

Calendar

<<  September 2014  >>
MonTueWedThuFriSatSun
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

View posts in large calendar

Month List

AuthorList