Click here to Skip to main content
15,887,214 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
User 5924113-May-18 3:55
User 5924113-May-18 3:55 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
megaadam14-May-18 3:10
professionalmegaadam14-May-18 3:10 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
User 5924114-May-18 3:24
User 5924114-May-18 3:24 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
megaadam14-May-18 3:42
professionalmegaadam14-May-18 3:42 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
David O'Neil13-May-18 5:43
professionalDavid O'Neil13-May-18 5:43 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... PinPopular
Marc Clifton13-May-18 7:31
mvaMarc Clifton13-May-18 7:31 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
David O'Neil13-May-18 8:00
professionalDavid O'Neil13-May-18 8:00 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
Jon McKee20-May-18 16:54
professionalJon McKee20-May-18 16:54 
David O'Neil wrote:
Action Center

If you want to get rid of that I wrote this a couple years ago (only tested on Win7):
:: Action Center Disable
:: Disables ActionCenter and ActionCenterCPL
::
@ECHO OFF

SC stop wscsvc
SC config wscsvc start=disabled

TAKEOWN /F "%SystemRoot%\system32\ActionCenter.dll"
ICACLS "%SystemRoot%\system32\ActionCenter.dll" /grant:r administrators:F
REN "%SystemRoot%\system32\ActionCenter.dll" ActionCenter.bak

TAKEOWN /F "%SystemRoot%\system32\ActionCenterCPL.dll"
ICACLS "%SystemRoot%\system32\ActionCenterCPL.dll" /grant:r administrators:F
REN "%SystemRoot%\system32\ActionCenterCPL.dll" ActionCenterCPL.bak

ECHO Operations completed.
PAUSE > NUL

As long as you're logged in as admin it works great and if you ever want to re-enable just rename the *.bak to *.dll. Even if you don't re-enable the service Windows will do that automatically if it detects the DLLs as I found out.
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
David O'Neil20-May-18 17:09
professionalDavid O'Neil20-May-18 17:09 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
David O'Neil13-May-18 21:46
professionalDavid O'Neil13-May-18 21:46 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
David O'Neil16-May-18 14:45
professionalDavid O'Neil16-May-18 14:45 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
Marc Clifton17-May-18 3:02
mvaMarc Clifton17-May-18 3:02 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
David O'Neil19-May-18 17:25
professionalDavid O'Neil19-May-18 17:25 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
charlieg13-May-18 18:05
charlieg13-May-18 18:05 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
Laiju k13-May-18 18:09
professionalLaiju k13-May-18 18:09 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
PeejayAdams14-May-18 0:02
PeejayAdams14-May-18 0:02 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
kmoorevs14-May-18 5:38
kmoorevs14-May-18 5:38 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
johannesnestler7-Jun-18 1:18
johannesnestler7-Jun-18 1:18 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
charlieg18-Jun-18 4:52
charlieg18-Jun-18 4:52 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
johannesnestler18-Jun-18 23:27
johannesnestler18-Jun-18 23:27 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
charlieg19-Jun-18 13:49
charlieg19-Jun-18 13:49 
GeneralWho wrote this code? Pin
Marc Clifton11-May-18 3:00
mvaMarc Clifton11-May-18 3:00 
GeneralRe: Who wrote this code? Pin
Richard Deeming11-May-18 4:23
mveRichard Deeming11-May-18 4:23 
GeneralRe: Who wrote this code? Pin
Marc Clifton13-May-18 12:02
mvaMarc Clifton13-May-18 12:02 
GeneralRe: Who wrote this code? Pin
RickZeeland11-May-18 4:29
mveRickZeeland11-May-18 4:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.