Advertisement
metalx1000

Windows CMD tricks

Jan 2nd, 2017
1,295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.64 KB | None | 0 0
  1. #Encrypt all files in a folder
  2. cipher /e
  3.  
  4. #create a wifi hotspot
  5. netsh wlan set hostednetwork mode=allow ssid=tests key=tests123
  6. netsh wlan start hostednetwork
  7. netsh wlan stop hostednetwork
  8.  
  9. #Hide files and folder even if show hidden folder is enabled
  10. attrib +h +s +r <folder>
  11. #unhide
  12. attrib -h -s -r <folder>
  13.  
  14. #copy output to clipboard - like xclip
  15. ipconfig | clip
  16.  
  17. #List installed programs
  18. wmic product get name
  19.  
  20. #uninstall programs
  21. wmic product where "name is like iTunes" call uninstall /nointeractive
  22.  
  23. #if you type "cmd" in the address bar of explorer it will open cmd in the current folder
  24. #press F7 to list session history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement