new var in HKEY_CURRENT_USER

new var in HKEY_CURRENT_USER

Postby Romeo » Wed Jul 03, 2013 9:20 am

Hi to all,

any help to how insert/search a new var in:

Computer\HKEY_CURRENT_USER\Software\PDFCreator\Program ?

tks

Romeo/Zingoni
Romeo
 
Posts: 340
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: new var in HKEY_CURRENT_USER

Postby cnavarro » Wed Jul 03, 2013 9:29 am

Maybe this thread can serve you

Quizas este hilo te pueda servir

viewtopic.php?f=3&t=20357&start=0&hilit=HKEY_CURRENT_USER
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: new var in HKEY_CURRENT_USER

Postby Romeo » Wed Jul 03, 2013 10:09 am

tks, it works !

now i am able to create a new var....but now i'am not able to cancel this new var using the function:

oreg:delete(cSubKey)

also using the function RegDeleteKey(oreg:nHandle,cSubKey) (it returns code error 2)

the cSubKey always exists

...additional help ?

tks
Romeo
 
Posts: 340
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: new var in HKEY_CURRENT_USER

Postby Otto » Wed Jul 03, 2013 10:22 am

I think current user key is only a temporary key. The value is stored in c:\users\' + $element + '\ntuser.dat'.
Best regards,
Otto

This is a PS script which changes values for a specific user.


Code: Select all  Expand view

clear host

$null = New-PSDrive -Name HKU   -PSProvider Registry -Root Registry::HKEY_USERS
Get-PSDrive -PSProvider Registry

Push-Location

$array = @("Biene1", "Biene2", "Biene3", "Biene4"  )

#, "Winhotel1", "Winhotel2", "Winhotel3", "Winhotel4", "Winhotel5"

foreach ($element in $array) {
$element

$cQuelle = ' c:\users' + $element + '\ntuser.dat'
$pfad = '
HKU:\Testuser\Control Panel\Mouse'

reg LOAD HKU\Testuser  $cQuelle


Write-Host $cQuelle
Write-Host $pfad

Set-ItemProperty -Path $pfad -Name '
DoubleClickHeight' -Value 50
Set-ItemProperty -Path $pfad -Name '
DoubleClickSpeed' -Value 370
Set-ItemProperty -Path $pfad -Name '
DoubleClickWidth' -Value 50

Set-Location $pfad

reg UNLOAD HKU\Testuser
}

Pop-Location
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 111 guests