Adding Directory to PATH without Reboot or Logoff/Logon

To add “C:\New Directory” to the Path variable temporarily, i.e. for current cmd session:

set path=%path%;C:\New Directory

To add the same directory to the Path user variable:

setx path "%path%;C:\New Directory"

This command updates the Path value under the HKEY_CURRENT_USER\Environment key in the Registry.

Note the “x” in the name of the command: “setx“, not “set”.

To add the directory to the Path system variable:

setx path "%path%;C:\New Directory" /M

This command updates the Path value under the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment key.

Note the “/M” parameter.

Remove Microsoft Personalized Ads from Skype for Windows

In a few words, the solution is:

  1. Redirect the source of the Ads to your computer by adding the following entries in the hosts file:
    127.0.0.1 m.adnxs.com
    127.0.0.1 ib.adnxs.com
    127.0.0.1 pixel.alephd.com
    127.0.0.1 apps.skype.com
    127.0.0.1 rad.msn.com
  2. Flush DNS by running “ipconfig /flushdns” command.
  3. If the problem comes back repeat the step No. 2.

Wix Standard Bootstrapper Application without License Agreement

In the bundle file replace:

<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />

with:

<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense">
  <bal:WixStandardBootstrapperApplication 
    xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"
    LicenseUrl=""
  />
</BootstrapperApplicationRef>

WixStandardBootstrapperApplication has three variants as explained in the WiX Manual. HyperlinkLicense is the simplest. It has a license link on the welcome page instead of a license page. It allows you to specify an empty URL for the license, in which case it would not display the link.

Links: Stackoverflow, WiX Manual.

Q&A for Remote Desktop

Q: What is key sequence for CTRL+ALT+DEL?
A: CTRL+ALT+END.

Q: How to restart/shutdown remote host?
A: Press CTRL+ALT+END, and then click “Shutdown”. Or, use the shutdown command at a command prompt.