Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 1.15 KB

Windows Commands

This is just a collection of useful Windows commands

  • where python -- like the Unix which python, locates the installed path to python
  • clear .bat file app association -- http://superuser.com/questions/53948/how-do-i-restore-bat-files-as-executables
  • rmdir /S dir_name -- remove a non-empty directory
  • ctrl + shift + esc -- open task manager
  • if else block with exist -- a gist to check for directory existence in batch script
  • mklink /D nameDir sourceDir -- create a symlink directory named nameDir that points to sourceDir
  • rd nameDir -- remove nameDir directory symlink. must be done first if symlink already exists in mklink above
  • echo %errorlevel% -- echo the status of the previous command. If not 0, there was an error.
  • net user %USERNAME% /domain -- print user domain information (password expiration, etc.)

Windows Utilities

You can’t perform that action at this time.