Skip to content

Instantly share code, notes, and snippets.

@katronai
Created March 17, 2017 08:06
Show Gist options
  • Save katronai/37c803ca412f62fe88bcf069d2718f9d to your computer and use it in GitHub Desktop.
Save katronai/37c803ca412f62fe88bcf069d2718f9d to your computer and use it in GitHub Desktop.
Windows command line commands
Service info
sc queryex servicename
Kill service
taskkill /f /pid mypid
System file checker
sfc /scannow
Available physical memory
systeminfo |find "Available Physical Memory"
Count number of lines
find /v /c "" myfile
Restart explorer.exe
taskkill /f /im explorer.exe + start explorer.exe
Delete file
delete myfile
Delete folder
rmdir myfolder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment