cmd question regarding adding registry

illusions

New member
Local time
11:09 AM
Messages
21
When I run this test.reg

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
"{374DE290-123F-4565-9164-39C4925E467B}"=hex(2):44,00,3a,00,5c,00,44,00,6f,00,\
77,00,6e,00,6c,00,6f,00,61,00,64,00,73,00,00,00

it will change the download folder directory to D:\Downloads


How do I code this in CMD ?

I have tried the following but does not work.


REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "{374DE290-123F-4565-9164-39C4925E467B}" /t REG_SZ /d hex(2):44,00,3a,00,5c,00,44,00,6f,00,\
77,00,6e,00,6c,00,6f,00,61,00,64,00,73,00,00,00 /f


Please help and thank you.
 

My Computer

OS
Windows 7 Ultimate x64
You dont need to code just save the file as a .reg file double click and it will as to add to reg
 

My Computer

Computer type
PC/Desktop
OS
win 8 32 bit
Yes, but I like to add it to my unattended installation batch file cmd so is there a syntax error in my REG ADD code ?
 

My Computer

OS
Windows 7 Ultimate x64
Once you have a .reg file just run

regedit /s foo.reg

It will run silent
 

My Computer

Computer type
PC/Desktop
OS
win 8 32 bit
Back
Top