| Top Adding |
Hubs | Hubbers | Topics | Request |
| #1 in Business | Subscribe Email Print |
|
You are here: Home > Computers and Technology > Personal Tech > VBScript Working with the Windows Registry |
|
Top Adding - VBScript Working with the Windows Registry
The script below demonstrates the write, read and deletion for each type of value in the Windows registry. The registry value types are:
According to USFDA, a combination product is one composed of any combination of a drug and device; biological product and device; drug and biological product mponent information is stored as binary data and is displayed in Registry Editor in hexadecimal format.
; or drug, device, and biological product and fixed dose combination would include two or more combinations of drug. Examples of combination products may in type and are displayed in Registry Editor in binary, hexadecimal, or decimal format.
lude drug-coated devices, drugs packaged with delivery devices in medical kits, and drugs and devices packaged separately but intended to be used together. eparated by spaces, commas, or other marks.
Option Explicit Const HKE here is enormous increase in the number of combination products entering the market in the recent years. Combination products have proven advantages but fixe _CLASSES_ROOT = &H80000000 Const HKEY_CURRENT_USER = &H80000001 Const HKEY_LOCAL_MACHINE = &H80000002 Const HKEY_USERS = &H80000003 Const HKEY_CURRENT_CONFIG = &H80000005 Dim strComputer Dim objRegistry Dim strKeyPath d dose combinations are still in the process of convincing regulatory authority on their advantages over the single ingredient formulations. Combination pro br>
Dim strValueName Dim strValue Dim arrValues Dim intValue strComputer = "." Set objRegistry=GetObject("winmgmts:{impersonationLevel=impersonate}!" & strComputer & "rootdefault:StdRegProv") 'Create Key strKeyPath = "Registry Tes ucts have become life saving products for the pharmaceutical companies who doesnt have many innovative molecules in their product pipeline and have been inc t" objRegistry.CreateKey HKEY_CURRENT_USER,strKeyPath 'Set String value strKeyPath = "Registry Test" strValueName = "String Test" strValue = "123" objRegistry.SetStringValue HKEY_CURRENT_USER,strKeyPath,strValueName,strValue easingly used in the product life cycle management. Even the companies having product patents are trying to extend their product life cycle through the combi 'Get String value strKeyPath = "Registry Test" strValueName = "String Test" objRegistry.GetStringValue HKEY_CURRENT_USER,strKeyPath,strValueName,strValue Wscript.Echo strValueName & " = " & strValue 'Delete String value strKeyP nation products and maximize the revenues. But the companies involved in this practice are overlooking that they are burdening the patients both economically ath = "Registry Test" strValueName = "String Test" objRegistry.DeleteValue HKEY_CURRENT_USER,strKeyPath,strValueName 'Set Binary value strKeyPath = "Registry Test" strValueName = "Binary Test" arrValues = Array(1,2,3,4,5,6,7,8,9 and physically. They need to rightly judge the benefits of the combination products and they have to even look at the risks involved when combining the produ 10) objRegistry.SetBinaryValue HKEY_CURRENT_USER,strKeyPath,strValueName,arrValues 'Get Binary value strKeyPath = "Registry Test" strValueName = "Binary Test" objRegistry.GetBinaryValue HKEY_CURRENT_USER,strKeyPath,strValueName,arrVa ts. Some of the combination products were well accepted by physicians while others suffered. Companies involved in development of combination products are fi ues For Each strValue In arrValues Wscript.Echo strValueName & " = " & strValue Next 'Delete Binary value strKeyPath = "Registry Test" strValueName = "Binary Test" objRegistry.DeleteValue HKEY_CURRENT_USER,strKeyPath,strVal ding difficulty in defining their combination products and facing various challenges from selecting a combination to marketing it. Following aspects would a ueName 'Set DWORD value strKeyPath = "Registry Test" strValueName = "DWORD Test" intValue = 123 objRegistry.SetDWORDValue HKEY_CURRENT_USER,strKeyPath,strValueName,intValue 'Get DWORD value strKeyPath = "Registry Test" dd to the challenges in developing combination products: Which markets to tap where the combination products can do fairly well? Which combination prod strValueName = "DWORD Test" objRegistry.GetDWORDValue HKEY_CURRENT_USER,strKeyPath,strValueName,intValue Wscript.Echo strValueName & " = " & intValue 'Delete DWORD value strKeyPath = "Registry Test" strValueName = "DWORD Test" o cts are meaningful and rational? Which therapeutic categories to select? Which Combinations can address unmet needs of the patients? Do combin bjRegistry.DeleteValue HKEY_CURRENT_USER,strKeyPath,strValueName 'Set Multi-String value strKeyPath = "Registry Test" strValueName = "Multi-String Test" arrValues = Array("Test1","Test2","Test3") objRegistry.SetMultiStringValue HKEY_ tions increase the patient compliance? What would be the developing cost? How to tackle the risks encountered during combination product developmen URRENT_USER,strKeyPath,strValueName,arrValues 'Get Multi-String value strKeyPath = "Registry Test" strValueName = "Multi-String Test" objRegistry.GetMultiStringValue HKEY_CURRENT_USER,strKeyPath,strValueName,arrValues For Each strVal t? As combination products don't fit into the traditional categories of drugs, medical devices, or biological products, the USFDA is in the process of devel e In arrValues Wscript.Echo strValueName & " = " & strValue Next 'Delete Multi-String value strKeyPath = "Registry Test" strValueName = "Multi-String Test" objRegistry.DeleteValue HKEY_CURRENT_USER,strKeyPath,strValueName ' ping new procedures for reviewing their safety, efficacy and quality. Professional from academic institutions, pharmaceutical industries, health care indust Set Expandable String value strKeyPath = "Registry Test" strValueName = "Expandable String Test" strValue = "123" objRegistry.SetExpandedStringValue HKEY_CURRENT_USER,strKeyPath,strValueName,strValue 'Get Expandable String value y and representatives from various regulatory agencies are working out to design the regulatory requirements for manufacture and sale of combination products strKeyPath = "Registry Test" strValueName = "Expandable String Test" objRegistry.GetExpandedStringValue HKEY_CURRENT_USER,strKeyPath,strValueName,strValue Wscript.Echo strValueName & " = " & strValue 'Delete Expandable String value s . As there is an increasing trend of the combination products companies manufacturing such products should be able to tackle the problems involved in the de trKeyPath = "Registry Test" strValueName = "Expandable String Test" objRegistry.DeleteValue HKEY_CURRENT_USER,strKeyPath,strValueName 'Delete Key strKeyPath = "Registry Test" objRegistry.DeleteKey HKEY_CURRENT_USER,strKeyPath Se elopment. They need to be wiser in analyzing the market trends and the regulatory requirements. Companies that provide selfless information through particip objRegistry = Nothing Please note: The above script write, read and delete values in the HKCU hive but can easily be modified to write to any of the registry hives. The deletion function is the same no matter what value type is being delete tion in industry events and feedback to regulatory authorities would be able to face the challenges and will be successful in developing combination products
HTTP = HTML link (for blogs, profiles,phorums):
Related Articles:Payday Loans And Other Credit Possibilities - Commercial Loans A Stock Market Timing Secret Revealed The Pros And Cons To Buying Foreclosed Properties
|