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-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_*.*