USUÁRIO:      SENHA:        SALVAR LOGIN ?    Adicione o VBWEB na sua lista de favoritos   Fale conosco 

 

  Fórum

  Visual Basic
Voltar
Autor Assunto:  Funções no Regedit
ghost_jlp
Pontos: 2843 Pontos: 2843 Pontos: 2843 Pontos: 2843
SÃO PAULO
SP - BRASIL
ENUNCIADA !
Postada em 21/11/2007 12:24 hs            
Eu usei a biblioteca Windows Script Host Object Model
 
E o objeto foi:
 
Dim ws As WshShell
TÓPICO EDITADO
 
ED - Caret
não registrado
ENUNCIADA !
Postada em 21/11/2007 14:24 hs   
CARAMBA! Tô comendo bola nessa
Ja fiz a referencia
 
Dim ws As WshShell
ws.RegDelete "HKEY_CURRENT_USERSOFTWARETeste1" & "nome"
 
da erro de argumento em ...... .RegDelete
   
ghost_jlp
Pontos: 2843 Pontos: 2843 Pontos: 2843 Pontos: 2843
SÃO PAULO
SP - BRASIL
ENUNCIADA !
Postada em 21/11/2007 14:29 hs            
Ow amigón... a chave foi criada???Emoções
Inicializou o objeto?? => set ws = new WshShell
   
ED - Caret
não registrado
ENUNCIADA !
Postada em 21/11/2007 14:37 hs   
Sim.... fiz exatamente isso... é que tinha omitido no post anterior
 
Dim ws As WshShell
set ws = new WshShell
ws.RegDelete "HKEY_CURRENT_USERSOFTWARETeste1" & "nome"
 
....não ria de mim....
   
ghost_jlp
Pontos: 2843 Pontos: 2843 Pontos: 2843 Pontos: 2843
SÃO PAULO
SP - BRASIL
ENUNCIADA !
Postada em 21/11/2007 15:02 hs            
Eu tô fazendo assim:
 
Dim ws As WshShell
Set ws = New WshShell
ws.RegWrite "HKEY_CURRENT_USER\SOFTWARE\Teste1" & "nome", "registro"
ws.RegDelete "HKEY_CURRENT_USER\SOFTWARE\Teste1" & "nome"
 
Ele cria a chave "Teste1nome" DENTRO DE "HKEY_CURRENT_USER\SOFTWARE" com o valor "registro" depois apaga.
 
Vc está fazendo algo diferente disso ?
   
ED - Caret
não registrado
ENUNCIADA !
Postada em 21/11/2007 16:46 hs   
heheheh, mas que coisa.... eitaaaa!!!!
 
No entanto a pasta "Teste1" ainda continua
fiz assim...
ws.RegDelete "HKEY_CURRENT_USERSOFTWARETeste1"
 
...dá erro de automação...
   
Página(s): 2/3     « ANTERIOR   1 | 2 | 3 |   PRÓXIMA »


Seu Nome:

Seu eMail:

ALTERAR PARA MODO HTML
Mensagem:

[:)] = 
[:P] = 
[:(] = 
[;)] = 

HTML DESLIGADO

     
 VOLTAR

  



CyberWEB Network Ltda.    © Copyright 2000-2025   -   Todos os direitos reservados.
Powered by HostingZone - A melhor hospedagem para seu site
Topo da página
 
 Home
 Artigos
 Cadastro
 Visual Basic
 Visual Basic .Net
 ASP
 ActiveX
 Apostilas
 Fóruns
 Utilitários
 Parceiros
 Hospedagem