maniaq Posted January 26, 2006 Posted January 26, 2006 (edited) REGEDIT4[HKEY_CURRENT_USER\Software\WinRAR\Interface\Themes]"ShellExtBMP"="D:\\Program Files\\WinRAR"%programfiles% doesn't work for me in the reg file.....how can i change D:\\Program Files Edited January 26, 2006 by maniaq
Yzöwl Posted January 26, 2006 Posted January 26, 2006 (edited) You could try this instead!REGEDIT4[HKEY_CURRENT_USER\Software\WinRAR\Interface\Themes]"ShellExtBMP"="%ProgramFiles%\\WinRAR"Or using reg.exeREG ADD HKCU\Software\WinRAR\Interface\Themes /V ShellExtBMP /T REG_EXPAND_SZ /D "%%ProgramFiles%%\WinRAR" /F<Edit>The above should be one single line</Edit> Edited January 26, 2006 by Yzöwl
Doc Symbiosis Posted January 29, 2006 Posted January 29, 2006 Do you get an error messsage, when you run the rag add command posted by Yzöwl? If not, which data is entered in your newly created value or what else is going wrong?
maniaq Posted January 29, 2006 Author Posted January 29, 2006 i'm not getting any errors but when i run it doesn't do what it has to do. when i change to d:\ it works
Doc Symbiosis Posted January 29, 2006 Posted January 29, 2006 Yzöwl's reg add command runs fine on my machine, of course, when you run it in command line and not in a batch, you have to use just single not double %.
Sonic Posted January 29, 2006 Posted January 29, 2006 (edited) Yzöwl's reg add command runs fine on my machine, of course, when you run it in command line and not in a batch, you have to use just single not double %.Wrong.The double % allow to keep variable in registry with /t REG_EXPAND_SZ type. With one %, the value become hard coded. But in fact, it's not a problem if it's hard coded because after batch execution program files path doesn't change. I think the best solution it's batch file which pass hard coded path of program files to reg.exe.REG ADD HKCU\Software\WinRAR\Interface\Themes /V ShellExtBMP /D "%ProgramFiles%\WinRAR" /F Edited January 29, 2006 by sonic
maniaq Posted February 12, 2006 Author Posted February 12, 2006 Yzöwl's reg add command runs fine on my machine, of course, when you run it in command line and not in a batch, you have to use just single not double %.Wrong.The double % allow to keep variable in registry with /t REG_EXPAND_SZ type. With one %, the value become hard coded. But in fact, it's not a problem if it's hard coded because after batch execution program files path doesn't change. I think the best solution it's batch file which pass hard coded path of program files to reg.exe.REG ADD HKCU\Software\WinRAR\Interface\Themes /V ShellExtBMP /D "%ProgramFiles%\WinRAR" /Fit worked..tnx
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