Afficher un message
Vieux 28/09/2007, 08h53   #2
Libor KunÄík
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Script that will Add Registry Entry to HKLM\Softwares\Microsoft\Windows\Currentversion\Ru n

M P napsal(a):
> I wanted to add an entry to the following registry path. Is it
> possible?
>

Example vbscript:
'----------------------------------------
const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "MyNetworkComputername"
Set oReg=GetObject( _
"winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")
strKeyPath = "Softwares\Microsoft\Windows\Currentversion\Ru n"
strValueName = "StartMyProgram"
strVal="myprogram.exe"
oReg.SetstringValue _
HKEY_LOCAL_MACHINE, strKeyPath, strValueName, strVal
'----------------------------------------

Libor
  Réponse avec citation
 
Page generated in 0,07307 seconds with 9 queries