Page 2 of 2 <12
Topic Options
#95190 - 2002-11-08 03:33 PM Re: Did I just hear someone mumble it's a slow night on the board ?
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
Better?

Thnx to all my teachers....
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#95191 - 2002-11-08 03:34 PM Re: Did I just hear someone mumble it's a slow night on the board ?
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Another...If you have a long string (especially one that you're using over and over) make it a variable and use that in your command...

code:
$sClasses="\\"+$computer+"\HKEY_LOCAL_MACHINE\SOFTWARE\Classes"
$RC=WriteValue($sClasses+"\CLSID\{F89DF848-618A-46F9-8A1C-396EA442BDD3}","","Widget Class",REG_SZ)



[ 08. November 2002, 15:35: Message edited by: Chris S. ]

Top
#95192 - 2002-11-08 03:40 PM Re: Did I just hear someone mumble it's a slow night on the board ?
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
I still kinda like Radimus's orig. idea:

$HKLMSCC = "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\"

and:

$HKCUSMWCV ... and other well known keys ...

Top
#95193 - 2002-11-08 03:43 PM Re: Did I just hear someone mumble it's a slow night on the board ?
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
I have this plopped down on the top of my UDF lib

code:
	$HKLMS       ="HKEY_LOCAL_MACHINE\Software"
$HKCUS ="HKEY_CURRENT_USER\Software"
$HKCUCPD ="HKEY_CURRENT_USER\Control Panel\Desktop"
$HKLMHDS ="HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System"
$HKLMSCCS ="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet"
$HKCUSMWCV ="$HKCUS\Microsoft\Windows\CurrentVersion"
$HKLMSMWCV ="$HKLMS\Microsoft\Windows\CurrentVersion"
$HKLMSMWNTCV ="$HKLMS\Microsoft\Windows NT\CurrentVersion"
$HKCUSMWNTCV ="$HKCUS\Microsoft\Windows NT\CurrentVersion"
$desktop =readvalue("$HKCUSMWCV\Explorer\Shell Folders","Desktop")
$startmenu =readvalue("$HKCUSMWCV\Explorer\Shell Folders","Start Menu")
$favorites =readvalue("$HKCUSMWCV\Explorer\Shell Folders","Favorites")
$alldesktop =readvalue("$HKLMSMWCV\Explorer\User Shell Folders","Common Desktop")
$allstartmenu=readvalue("$HKLMSMWCV\Explorer\User Shell Folders","Common Start Menu")

_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#95194 - 2002-11-08 03:43 PM Re: Did I just hear someone mumble it's a slow night on the board ?
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Yeah, but...

code:
$HKLMSCC = "HKLM\SOFTWARE\Classes\CLSID\"

...gets a lower golf score. [Wink]

Top
#95195 - 2002-11-08 04:44 PM Re: Did I just hear someone mumble it's a slow night on the board ?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
The HKLM style abbreviation however is limited to newer versions of KiX.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 2 of 2 <12


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 671 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.059 seconds in which 0.025 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org