Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Create a batch file to clean out the notification tray?


  • Please log in to reply
6 replies to this topic

#1 Cecilia421

Cecilia421

  • Members
  • 114 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:Walton, KY
  • Local time:10:53 AM

Posted 27 March 2013 - 10:42 AM

Hi, all you computer geniuses!  :thumbup2:

 

I have noticed that Win7 does not automatically remove the notification icons of uninstalled programs from the notification tray. I found instructions online to do it manually. I tried it and it works just fine. My question is, could a batch file be created the execute the steps and if so, how would it be written? Here are the steps (from www.ghacks.net):

 

Here is how you can remove old notification icons from the Windows 7 system tray.

  • Press [Windows R], type [regedit] and hit [enter]
  • Navigate to the Registry key HKCU \Software \Classes \LocalSettings \Software \Microsoft \Windows \CurrentVersion \TrayNotify
  • Make a backup of the Registry key by right-clicking on TrayNotify and selecting Export.
  • Now delete the following two Registry keys: IconStreams and PastIconsStream
  • Open the Windows Task Manager with [Ctrl Shift Esc]
  • Terminate the explorer.exe process
  • Click on File > New Task Run and enter explorer.exe to reload the explorer process

 

 

So the file would have to create the backup, delete the correct registry keys, and then kill and restart explorer.exe. 

 

Any ideas? (C'mon - I know you can do it!)  :thumbsup: 


"Life can only be understood backwards, but it must be lived forwards."
- Soren Kierkegaard

BC AdBot (Login to Remove)

 


#2 narenxp

narenxp

  • BC Advisor
  • 16,371 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:India
  • Local time:09:53 AM

Posted 27 March 2013 - 12:06 PM

Copy this code to a notepad and save as bat file.This bat file would perfom the function

 

@echo off
reg export "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" %userprofile%\desktop\traynotify.reg /y
reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v IconStreams /f
reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v PastIconsStream /f
taskkill /f /im explorer.exe
start explorer.exe
exit



#3 Cecilia421

Cecilia421
  • Topic Starter

  • Members
  • 114 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:Walton, KY
  • Local time:10:53 AM

Posted 27 March 2013 - 12:14 PM

:woot: Awesome - that's perfect!

 

If it's that easy - why doesn't Microsoft add it as a function???

 

We'll never know...


"Life can only be understood backwards, but it must be lived forwards."
- Soren Kierkegaard

#4 narenxp

narenxp

  • BC Advisor
  • 16,371 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:India
  • Local time:09:53 AM

Posted 27 March 2013 - 12:50 PM

:thumbup2:



#5 Cecilia421

Cecilia421
  • Topic Starter

  • Members
  • 114 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:Walton, KY
  • Local time:10:53 AM

Posted 02 April 2013 - 12:12 PM

Maybe this would be a good sticky for the tips and tricks forum. I've noticed several other people on the internet asking how to reset the notification icons, and this batch file would be the perfect solution for those who are don't feel safe editing the registry themselves.

 

What do you think?


"Life can only be understood backwards, but it must be lived forwards."
- Soren Kierkegaard

#6 narenxp

narenxp

  • BC Advisor
  • 16,371 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:India
  • Local time:09:53 AM

Posted 02 April 2013 - 09:30 PM

If you think it may help others please share it in tips and tricks forum.



#7 Cecilia421

Cecilia421
  • Topic Starter

  • Members
  • 114 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:Walton, KY
  • Local time:10:53 AM

Posted 03 April 2013 - 03:20 PM

Will do! Thanks. :)


"Life can only be understood backwards, but it must be lived forwards."
- Soren Kierkegaard




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users