Command line to remove an environment variable from the OS level configuration

Windows has the setx command: Description: Creates or modifies environment variables in the user or system environment. So you can set a variable like this: setx FOOBAR 1 And you can clear the value like this: setx FOOBAR “” However, the variable does not get removed. It stays in the registry: So how would you … Read more

Adding a guideline to the editor in Visual Studio

Introduction I’ve always been searching for a way to make Visual Studio draw a line after a certain amount of characters. Below is a guide to enable these so called guidelines for various versions of Visual Studio. Visual Studio 2013 or later Install Paul Harrington’s Editor Guidelines extension. Visual Studio 2010 and 2012 Install Paul … Read more

How to export/import PuTTY sessions list?

Is there a way to do this? Or I have to take manually every record from Registry? 15 s 15 Export cmd.exe, require elevated prompt: Only sessions: regedit /e “%USERPROFILE%\Desktop\putty-sessions.reg” HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions All settings: regedit /e “%USERPROFILE%\Desktop\putty.reg” HKEY_CURRENT_USER\Software\SimonTatham Powershell: Only sessions: reg export HKCU\Software\SimonTatham\PuTTY\Sessions ([Environment]::GetFolderPath(“Desktop”) + “\putty-sessions.reg”) All settings: reg export HKCU\Software\SimonTatham ([Environment]::GetFolderPath(“Desktop”) + “\putty.reg”) Import … Read more