List of useful commands that don't have a place elsewhere

Outlook

Reset Microsoft Outlook inbox and other settings when it screws up and won't start:

"C:\Program Files\Microsoft Office\Office\OUTLOOK.EXE" /Cleanfinders /CleanSchedPlus /CleanViews /Profiles /ResetFolders /Safe

Reference at http://office.microsoft.com/en-gb/assistance/ha010347711033.aspx

Linux

Finding files that have not been modified for more than N days:

find <directory> -mtime +N

Deleting files that have not been modified for more than N days (Will not delete files that begin with a . (dot):

 find <directory> -mtime +N -type f | fgrep -v '/.' | { while read x; do /bin/rm -v "$x"; done; } 

Windows

Creating a service:

sc.exe create <ServiceName> binPath= <ProgramPath> 

Starting a service:

sc.exe start <ServiceName> 

Deleting a service:

sc.exe delete <ServiceName> 

RandomUsefulCommands (last edited 2013-09-18 06:09:34 by localhost)