|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I wanted to add an entry to the following registry path. Is it
possible? |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|