Questions tagged [registry]

The Windows Registry is a database where configuration settings for hardware, software and the Windows operating system itself are saved.

[The Windows Registry] contains settings for low-level operating system components as well as the applications running on the platform: the kernel, device drivers, services, SAM, user interface and third party applications all make use of the registry. The registry also provides a means to access counters for profiling system performance.

When first introduced with Windows 3.1, the Windows registry's primary purpose was to store configuration information for COM-based components. With the introduction of Windows 95 and Windows NT, its use was extended to tidy up the profusion of per-program INI files that had previously been used to store configuration settings for Windows programs.

Source: Wikipedia

7354 questions
810
votes
15 answers

How to export/import PuTTY sessions list?

Is there a way to do this? Or I have to take manually every record from Registry?
s.webbandit
  • 16,332
  • 16
  • 58
  • 82
371
votes
15 answers

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…
xsl
  • 17,116
  • 18
  • 71
  • 112
343
votes
25 answers

Read/write to Windows registry using Java

How is it possible to read/write to the Windows registry using Java?
Dichkaun
250
votes
11 answers

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…
anon
216
votes
4 answers

Where are environment variables stored in the Windows Registry?

I need to access an environment variable remotely. To do this, I think the best way is to read it from registry. Where are environment variables stored in the Windows Registry?
Brian R. Bondy
  • 339,232
  • 124
  • 596
  • 636
136
votes
16 answers

Java Error opening registry key

I get this error when I try to do anything with Java in command prompt: Error opening registry key 'Software\JavaSoft\Java Runtime Environment.3' Error: could not find Java.dll Error: could not find Java 2 Runtime Environment I did screw around…
gFu
  • 1,579
  • 2
  • 11
  • 12
135
votes
14 answers

When - and why - should you store data in the Windows Registry?

As a developer, tools that store configuration/options in the registry are the bane of my life. I can't easily track changes to those options, can't easily port them from machine to machine, and it all makes me really yearn for the good old days of…
Roddy
  • 66,617
  • 42
  • 165
  • 277
124
votes
7 answers

How to reset the npm registry in global npm config

Is there any way to change or reset the global npm registry. Appreciate your assistance.
Dinuka De Silva
  • 2,431
  • 2
  • 14
  • 13
104
votes
6 answers

Reading 64bit Registry from a 32bit application

I have a c# unit test project that is compiled for AnyCPU. Our build server is a 64bit machine, and has a 64bit SQL Express instance installed. The test project uses code similar to the following to identify the path to the .MDF files: private…
David Gardiner
  • 16,892
  • 20
  • 80
  • 117
104
votes
8 answers

How to read a value from the Windows registry

Given the key for some registry value (e.g. HKEY_LOCAL_MACHINE\blah\blah\blah\foo) how can I: Safely determine that such a key exists. Programmatically (i.e. with code) get its value. I have absolutely no intention of writing anything back to the…
nolandda
  • 2,254
  • 3
  • 17
  • 19
97
votes
12 answers

Windows is not passing command line arguments to Python programs executed from the shell

I'm having trouble getting command line arguments passed to Python programs if I try to execute them directly as executable commands from a Windows command shell. For example, if I have this program (test.py): import sys print "Args: %r" %…
mckoss
  • 6,764
  • 6
  • 33
  • 31
93
votes
2 answers

OpenSubKey() returns null for a registry key that I can see in regedit.exe

I'm trying to get all the display names of the sub keys within this key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall With this code: RegistryKey newKey; string val; string KeyPath64Bit =…
Zak Soliman
  • 1,130
  • 1
  • 7
  • 14
89
votes
9 answers

Can not pull/push images after update docker to 1.12

The private registry was worked well based on docker 1.10.3,but I can not pull/push images after the docker updated to 1.12.0. I had modified the /etc/sysconfig/docker as: OPTIONS='--selinux-enabled=true…
yuxiaoyu
  • 893
  • 1
  • 7
  • 8
83
votes
7 answers

How to check if a registry value exists using C#?

How to check if a registry value exists by C# code? This is my code, I want to check if 'Start' exists. public static bool checkMachineType() { RegistryKey winLogonKey =…
sari k
  • 2,051
  • 6
  • 28
  • 34
82
votes
3 answers

How to read value of a registry key c#

At start up of my application I am trying to see if the user has a specific version of a software installed, specifically the MySQL connector, all using c#. In the registry, the MySQL contains a version entry. So what I am trying to accomplish is…
Scalahansolo
  • 2,615
  • 6
  • 26
  • 43
1
2 3
99 100