variable name in regitry

G

Guest

Good day Sirs,

I'd like to update an regitry key, using a variable name, by a reg file :

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
Folders]
"Favorites"="%APPDATA%\Favoris"

How to make it accept the %APPDATA% variable name ?
Thanks for your help.
 
P

Phill. W

zzz said:
I'd like to update an regitry key, using a variable name, by a reg file : .. . .
How to make it accept the %APPDATA% variable name ?

You need to use a different type of Registry value, which shows in
RegEdit as REG_EXPAND_SZ.

Find any other key of this type, export it and see what the resulting
..reg file looks like.

HTH,
Phill W.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top