Skip to content

Instantly share code, notes, and snippets.

@zarzen
Last active November 20, 2015 06:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zarzen/22e19f790d84b8a9e356 to your computer and use it in GitHub Desktop.
Save zarzen/22e19f790d84b8a9e356 to your computer and use it in GitHub Desktop.
windows cmd tips

Create Alias Under Windows cmd

doskey np=notepad++.exe $*

`$*` is for passing paramters from console

change folder’s permission through cmd

Grant John full control over D:\test folder

C:>icacls "D:\test" /grant John:(OI)(CI)F

Explain:

  • F= Full Control
  • CI= Container Inherit - This flag indicates that subordinate containers will inherit this ACE.
  • OI= Object Inherit - This flag indicates that subordinate files will inherit the ACE.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment