Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 605 Bytes

cheatsheet-windows-command-line.md

File metadata and controls

41 lines (30 loc) · 605 Bytes

Windows Command Line

Turn off Hibernate

@powercfg -h off

Get all File Path

DIR /A /B /S > result.txt

We can make this command a bat file.

Just put the bat file in desired folder and run it.

Extract Content of *.chm

hh.exe -decompile \path-to-save-folder \path-to-chm-file

VHD Attach

@echo off
echo select vdisk file="C:\Virtual Disk for Cache.vhd" >vhdsel
echo attach vdisk>>vhdsel
echo list disk>>vhdsel
diskpart /s vhdsel
del /f /q vhdsel
exit

Get timestamp in ISO format in powershell

Get-Date -Format "o"