Jump to content

using %systemroot% in the registry..


evilkwan

Recommended Posts

i dont no how to explain but..

i wanna register a file using the %SYSTEMROOT% way.. but instead of showing %SYSTEMROOT% in the registry value i want it to locate the real directory instead..

everyone is lost? lol i dont even noe wat im saying myself..

ummm...

the bsplay.REG file look like this..

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\BST\BSplayer]
"skin"=""
"AutoPlay"=dword:00000001
"AppPath"="%systemroot%\\bsplayer\\bsplay.exe"

registry view...

systemroot.jpg

if anyone get what im trying to say and knows how to do it, can you please tell me.

thnx..

Link to comment
Share on other sites


i dont no how to explain but..

i wanna register a file using the %SYSTEMROOT% way.. but instead of showing %SYSTEMROOT% in the registry value i want it to locate the real directory instead..

everyone is lost? lol i dont even noe wat im saying myself..

ummm...

the bsplay.REG file look like this..

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\BST\BSplayer]
"skin"=""
"AutoPlay"=dword:00000001
"AppPath"="%systemroot%\\bsplayer\\bsplay.exe"

registry view...

systemroot.jpg

if anyone get what im trying to say and knows how to do it, can you please tell me.

thnx..

I believe you should use %%systemroot%% instead of %systemroot%...

Link to comment
Share on other sites

Yes you can but it has to be REG_EXPAND_SZ

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\ResHack]

[HKEY_CLASSES_ROOT\*\shell\ResHack\command]
@=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,00,25,\
 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,52,00,65,00,\
 73,00,48,00,61,00,63,00,6b,00,65,00,72,00,2e,00,65,00,78,00,65,00,20,00,25,\
 00,31,00,00,00

My command says %systemroot%\System32\ResHacker.exe %1

That gives me right click ResHacker

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...