Windows CMD

Files & Folders

Deleting a non empty directory
rmdir /s /q $DIR_NAME
Creating a empty file
type NULL > $FILE_NAME
Removing a File
del $FILE_NAME

Variables

windows-installation\Users\USER-NAME\AppData\local
%localappdata%

Windows PowerShell

Paths

Copy the current directory path
(Get-Location).Path | Set-Clipboard

Files and Folders

Copy the a file
Copy-Item -Path <source> -Destination <destination>
Remove the a file
Remove-Item -Path "C:\path\to\your\file.txt"
Rename the a file
Rename-Item -Path "C:\path\to\your\file.txt" -Newname "updatedname"
Move a file
Move-Item -Path "C:\path\to\your\file.txt" -Destination "C:\path\to\your\destinaton"
Check file hash
Get-FileHash -Path <string> [-Algorithm <string>]
Remove a non empty directory
Remove-Item C:\path\to\non\empty\folder -Recurse -Force