This is just a collection of useful Windows commands
where python-- like the Unixwhich python, locates the installed path topython- clear
.batfile app association -- http://superuser.com/questions/53948/how-do-i-restore-bat-files-as-executables rmdir /S dir_name-- remove a non-empty directoryctrl + 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 namednameDirthat points tosourceDirrd nameDir-- removenameDirdirectory symlink. must be done first if symlink already exists in mklink aboveecho %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.)
- Microsoft File Checksum Integrity Verifier -- installs
fcivfciv {path_to_file} -sha1-- generate the SHA1 value of a file