Page tree
Skip to end of metadata
Go to start of metadata

Long Paths in Windows

See Long Paths in Windows

Visual C++ Redistributables

Install the redistributables required for IHMC Matrix Library, IHMC Video Codecs, and ROS 2/Fast-RTPS.

Currently, those are comprised by:

Installing JDK (after Oracle shut down JDK 8 downloads)

See Java#Windows

Edit the Hosts file

  1. Run Notepad as Administrator.
  2. File > Open
  3. Set the file filter to "All Files (*.*)"
  4. Open C:\Windows\System32\drivers\etc\hosts
    1. (For Git?) Open C:\Program Files\Git\etc\hosts

Remove a directory

rd /s /q <dir>

Log to a file

some command 1> log.txt 2>&1

Log to a file (but also to console)

To do this, download tee.exe below and add to your path.

some command 2>&1 | tee log.txt

Download → tee.exe

Building C++ Libraries (ROS2, OpenCV, other native libs)

On Windows, the C compiler is called msbuild, but even if installed, it with not be accessible from the terminal until you call the command below.

See for more details.

// Add MSBuild to your environment to build C++ and Visual projects
$ call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64
$ msbuild -version

Recommended tweaks

One drive enable/disable:

Recommended Software Install tools and keep them up to date. - choco install -y conemu

ConEmu Setup

ConEmu is a really useful terminal app for Windows when you need to manage Git configurations, run Gradle builds, build native code and more.

Context Menu Integration

Integration - register ConEmu Here (top one)

← After right click in Win Explorer

Make folder name show in taskbar title

Edit {Shells::cmd} to point to your custom CmdInit.cmd (download a preconfigured one here)

Add to the default CmdInit.cmd for %%I in (.) do set CurrDirName=%%~nxI title %CurrDirName%

Download → CmdInit.cmd

Access the credentials manager

Some apps like Git can store their credentials in the Windows Credential Manager.

You can edit or remove any credentials you find there:

For more information on how Git decides where to store credentials:

  • No labels