Kill the aspnet (w3wp) process in Windows 7

This trick comes from one of my colleagues. When developing Sitecore applications you need to turn the (w3wp) process constantly. To kill the process, open the command line and write the following:

C:\Windows\System32\taskkill.exe /IM w3wp.exe /F

The taskkill.exe needs to run in administrator mode.

To fully automate the process you should:

  • Create a .bat file with the command.
  • Add a shortcut to the desktop (right-click the .bat file, choose “Send to->Desktop (create shortcut)”).
  • Right click the shortcut on the desktop.
  • Choose “Properties”.
  • Select the “Shortcut” tab and click the “Advanced” button. Select “Run as administrator”.
  • On the same Shortcut tab you may also choose a shortcut key. I use CTRL+SHIFT+ALT+K.

So whenever I press CTRL+SHIFT+ALT+K my Sitecore website is turned. Simple and easy.

About briancaos

Developer at Pentia A/S since 2003. Have developed Web Applications using Sitecore Since Sitecore 4.1.
This entry was posted in General .NET and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s