Click here to Skip to main content
16,003,404 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCreateKey returned 6 Pin
subramanyeswari15-Jan-09 21:09
subramanyeswari15-Jan-09 21:09 
Hi,

I am using the following script to write key and values into registry using vbscript.

this is my code
strComputer = "."Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")keyPath = "*\shellex\ContextMenuHandlers\WWBuildShell64Ext"Return = oReg.CreateKey HKEY_CLASSES_ROOT ,keyPath If (Return = 0) And (Err.Number = 0) Then        Wscript.Echo "HKEY_LOCAL_MACHINE\Software\MyKey\MySubKey created"Else    Wscript.Echo "CreateKey failed. Error = " & Err.NumberEnd If


It is retuning 6. What does it mean? how to correct it?

Please help me.

Thanks
AnswerRe: CreateKey returned 6 Pin
Dave Kreskowiak16-Jan-09 0:53
mveDave Kreskowiak16-Jan-09 0:53 
QuestionConnecting to SQL Server Compact using VB.Net Pin
carrigart15-Jan-09 19:45
carrigart15-Jan-09 19:45 
AnswerRe: Connecting to SQL Server Compact using VB.Net Pin
Colin Angus Mackay15-Jan-09 21:36
Colin Angus Mackay15-Jan-09 21:36 
AnswerRe: Connecting to SQL Server Compact using VB.Net Pin
Kizza00715-Jan-09 23:29
Kizza00715-Jan-09 23:29 
GeneralRe: Connecting to SQL Server Compact using VB.Net Pin
carrigart16-Jan-09 16:42
carrigart16-Jan-09 16:42 
QuestionVB.NET strange behaviour with Show/ShowDialog on Windows Application vs Class Library Pin
Livinit15-Jan-09 15:22
Livinit15-Jan-09 15:22 
AnswerRe: VB.NET strange behaviour with Show/ShowDialog on Windows Application vs Class Library Pin
ColinM12315-Jan-09 16:30
ColinM12315-Jan-09 16:30 
QuestionBindingsource Filter help please? Pin
Chrispie12315-Jan-09 8:34
Chrispie12315-Jan-09 8:34 
AnswerRe: Bindingsource Filter help please? Pin
Wendelius15-Jan-09 9:12
mentorWendelius15-Jan-09 9:12 
GeneralRe: Bindingsource Filter help please? Pin
Chrispie12315-Jan-09 17:40
Chrispie12315-Jan-09 17:40 
GeneralRe: Bindingsource Filter help please? Pin
Wendelius15-Jan-09 18:38
mentorWendelius15-Jan-09 18:38 
AnswerRe: Bindingsource Filter help please? Pin
Chrispie12321-Jan-09 18:18
Chrispie12321-Jan-09 18:18 
QuestionVB.net Clipboard Pin
Van aerden15-Jan-09 5:58
Van aerden15-Jan-09 5:58 
AnswerRe: VB.net Clipboard Pin
Dave Kreskowiak15-Jan-09 7:28
mveDave Kreskowiak15-Jan-09 7:28 
QuestionDesign Question Pin
programmervb.netc++15-Jan-09 5:41
programmervb.netc++15-Jan-09 5:41 
AnswerRe: Design Question Pin
EliottA15-Jan-09 5:44
EliottA15-Jan-09 5:44 
GeneralRe: Design Question Pin
programmervb.netc++15-Jan-09 5:49
programmervb.netc++15-Jan-09 5:49 
GeneralRe: Design Question Pin
EliottA15-Jan-09 5:53
EliottA15-Jan-09 5:53 
GeneralRe: Design Question Pin
programmervb.netc++15-Jan-09 5:55
programmervb.netc++15-Jan-09 5:55 
GeneralRe: Design Question Pin
EliottA15-Jan-09 5:58
EliottA15-Jan-09 5:58 
GeneralRe: Design Question Pin
programmervb.netc++15-Jan-09 5:59
programmervb.netc++15-Jan-09 5:59 
QuestionPopulate any combobox with table column using VB.NET WITH ORACLE DATABASE. Pin
nan4915-Jan-09 5:30
nan4915-Jan-09 5:30 
AnswerRe: Populate any combobox with table column using VB.NET WITH ORACLE DATABASE. Pin
Scott Dorman15-Jan-09 5:37
professionalScott Dorman15-Jan-09 5:37 
GeneralRe: Populate any combobox with table column using VB.NET WITH ORACLE DATABASE. Pin
Jon_Boy15-Jan-09 6:06
Jon_Boy15-Jan-09 6:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.