Skip to content

OS Windows

Euccas Chen edited this page Jun 12, 2018 · 5 revisions

OS Windows Tips

Add to path

set PATH=D:\workspace\bin;%PATH%

Show current time in windows command prompt

It's a nice feature. Useful when you need timing some applications/commands.

prompt $t$g

how-to-get-windows-command-prompt-to-display-time

Find which process uses a DLL or file handle

The process cannot access the file because it is being used by another process.
  1. Open Process Explorer, running as administrator.
  2. Enter the keyboard shortcut Ctrl+F. Altenatively, click the “Find” menu and select “Find a Handle or DLL”.
  3. A search dialog box will open.
  4. Type in the name (substring) of the locked file or other file of interest.

Generate a time stamp with Batch

set stamp=%DATE:~-4%_%DATE:~4,2%_%DATE:~7,2%_%TIME:~0,2%_%TIME:~3,2%_%TIME:~6,2%
# 2018_06_12_14_59_12
Clone this wiki locally