Windows CMD
Files & Folders
Deleting a non empty directory
rmdir /s /q $DIR_NAMECreating a empty file
type NULL > $FILE_NAMERemoving a File
del $FILE_NAMEVariables
windows-installation\Users\USER-NAME\AppData\local
%localappdata%Windows PowerShell
Paths
Copy the current directory path
(Get-Location).Path | Set-ClipboardFiles 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