registry

identifying the location of the relevant tnsnames and echoing to the console

ぃ、小莉子 提交于 2019-12-24 11:24:07
问题 In a previous post, I was working on using VBS to list all of the drivers installed on a machine. I am particularily interested in the Oracle drivers. Now, I'd like to next capture the contents of the applicable tnsnames.ora files. In practice in our environment, I would expect up to 3 tnsnames.ora fuiles with the assumption that a machine might have both the 32 bit and 64 bit drivers installed. I would then expect 1 tnnamesora file in the 32 bit admin folder, 1 in the 63 bit folder and one

CLSIDFromProgID is successful but CreateInstace fails! Why?

帅比萌擦擦* 提交于 2019-12-24 10:56:36
问题 I am trying to create an instance of a COM object. I have the class name that implements the interface and I get a CLSID by using CLSIDFromProgID(). So since I am getting a CLSID I thought everything should be fine from now on. However when I do a call to CreateInstance and pass in the CLSID, I get an error saying "Class not registered". Also I get this error only in some computers. It runs error free on several computers. I don't understand where the problem could be. Is my registry dirty?

Get Windows files associations via Java

折月煮酒 提交于 2019-12-24 10:18:17
问题 I thought this would be an easy task but . . . I want my Java program to get the user's Windows file associations. In other words, I want to know what the user uses to open .txt files, .cvs files, etc. The assoc and ftype commands provide that info, but not for the user. In other words, if I've set my text editor to Notepad++, assoc and ftype don't show it. They show the system default, Notepad, instead. It looks like I have to get that info from the registry but I have two problems. 1) I don

how to set REG_KEY_DONT_VIRTUALIZE flag in c#

雨燕双飞 提交于 2019-12-24 09:37:44
问题 My question is very simple, but i dint found an answer googling long time. How to set REG_KEY_DONT_VIRTUALIZE flag to registry key created by me (i.e. HKLM\Software\MyApp )? I want my program to be user-independent. Every user starting my app should have access to the same configuration options located in that location). Changing application manifest I can disable registry virtualization by running program as administrator, but I want normal user be able to run the program and read registry

How to set proxy in Windows with Python?

梦想的初衷 提交于 2019-12-24 06:59:10
问题 How can I get the current Windows' browser proxy setting, as well as set them to a value? I know I can do this by looking in the registry at Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer , but I'm looking, if it is possible, to do this without messing directly with the registry. 回答1: urllib module automatically retrieves settings from registry when no proxies are specified as a parameter or in the environment variables In a Windows environment, if no proxy

How to set proxy in Windows with Python?

不打扰是莪最后的温柔 提交于 2019-12-24 06:59:09
问题 How can I get the current Windows' browser proxy setting, as well as set them to a value? I know I can do this by looking in the registry at Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer , but I'm looking, if it is possible, to do this without messing directly with the registry. 回答1: urllib module automatically retrieves settings from registry when no proxies are specified as a parameter or in the environment variables In a Windows environment, if no proxy

Parsing icon for applications issue

China☆狼群 提交于 2019-12-24 06:59:06
问题 I want to get applications icon from the registry. The problem is that I'm getting only default application icon. How to get the actual application icon? Thanks. Screenshot: Code: QStringList allLocalMachineX86Keys; QString displayIcon; QString iconFile; QIcon programIcon; QStringList displayIconSplitted; QString iconSplittedData; QFileIconProvider fileIconProvider; QString displayName; QSettings registryKeyLocalMachineX86("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\

Parsing icon for applications issue

こ雲淡風輕ζ 提交于 2019-12-24 06:59:06
问题 I want to get applications icon from the registry. The problem is that I'm getting only default application icon. How to get the actual application icon? Thanks. Screenshot: Code: QStringList allLocalMachineX86Keys; QString displayIcon; QString iconFile; QIcon programIcon; QStringList displayIconSplitted; QString iconSplittedData; QFileIconProvider fileIconProvider; QString displayName; QSettings registryKeyLocalMachineX86("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\

Windows Shell Functions

↘锁芯ラ 提交于 2019-12-24 06:24:05
问题 So I was following this tutorial: https://msdn.microsoft.com/en-us/library/windows/desktop/hh127427(v=vs.85).aspx when I cam across the sentence that casually says "Call the SHChangeNotify function". How do I do this? It is not recognized by powershell. Do I have to import some library in c++ and call it from a c++ program? I am on windows 10. 回答1: I used the following to call a refresh on the desktop from powershell by using C# code: $code = @' [System.Runtime.InteropServices.DllImport(

Batch file: run command in a cmd.exe launched as a different user using batch file

假如想象 提交于 2019-12-24 04:31:37
问题 Hi Folks I am a newbie to batch files and I am facing a challenge. I have to do following steps using a batch file automatically. Steps 1 and 3 I am able to figure out, however for step 2 i need your help: A. Run command prompt using a user: Comment: This I have figured out, I can do it using: @Echo Off runas /profile /savecred /user:xyzasa\asdasq "cmd" B. Make some registry changes using the command prompt which opened in the previous step Comment: I know this can be done using the reg add