2023-04-05

Count files in a folder from Command Prompt / PowerShell

  • Command prompt 
    • dir *.* /a-d | find "File(s)"
    • dir *.* /b /a-d | find /c /v ""
  • PowerShell
    • (Get-ChildItem C:\csv -filter "*.*").Count
    • (Get-ChildItem C:\csv -recurse -filter "*.*").Count recursive search
    • (Get-ChildItem C:\csv -filter "*.*").Count
    • [System.IO.Directory]::GetFiles("c:\Path").Count

2023-01-12

Hide Edge opened tabs when pressing Alt-TAB

Go to:
  • Settings
  • System
  • Multitasking
  • Alt + TAB
And select Open only windows

Disable "Restore session" in Internet Explorer

If you get the following error message Your last browsing session closed unexpectedly and you want to disable it, then go to:
  • Tools \ Internet Options
  • Advanced
  • Browsing

and uncheck Enable automatic crash recovery*

2023-01-05

Store location of the opened tabs from Chrome browser / Restore opened tabs from Chrome

Go the the following location:
%userprofile%\AppData\Local\Google\Chrome\User Data\Default\Sessions

To restore your opened tabs to another PC or user copy the files in this locatation to your new device:
Session_*.* and Tabs_*.*

2022-11-28

2022-06-30

Clear Microsoft Teams cache

  •  close Teams
  • open the following location and delete all files in it
    • Windows: %appdata%\Microsoft\Teams
    • Mac: ~/Library/Application Support/Microsoft