evilkwan Posted May 19, 2004 Share Posted May 19, 2004 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...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 More sharing options...
Jainoxi Posted May 19, 2004 Share Posted May 19, 2004 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...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 More sharing options...
Bâshrat the Sneaky Posted May 19, 2004 Share Posted May 19, 2004 It's not possible to use variables in the registry.. Link to comment Share on other sites More sharing options...
maxXPsoft Posted May 19, 2004 Share Posted May 19, 2004 Yes you can but it has to be REG_EXPAND_SZWindows 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,00My command says %systemroot%\System32\ResHacker.exe %1That gives me right click ResHacker Link to comment Share on other sites More sharing options...
evilkwan Posted May 19, 2004 Author Share Posted May 19, 2004 My command says %systemroot%\System32\ResHacker.exe %1That gives me right click ResHackerWhy is there a %1 at the end for? wat does that do? Link to comment Share on other sites More sharing options...
jrzycrim Posted May 20, 2004 Share Posted May 20, 2004 That's a variable which resolves to the name of the particular file you are opening. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now