Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: cmd question regarding adding registry

12 Aug 2017   #1

Windows 7 Ultimate x64
cmd question regarding adding registry

When I run this test.reg

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]

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 System SpecsSystem Spec
12 Aug 2017   #2

win 8 32 bit

You dont need to code just save the file as a .reg file double click and it will as to add to reg
My System SpecsSystem Spec
12 Aug 2017   #3

Windows 7 Ultimate x64

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 System SpecsSystem Spec

12 Aug 2017   #4

win 8 32 bit

Once you have a .reg file just run

regedit /s foo.reg

It will run silent
My System SpecsSystem Spec

 cmd question regarding adding registry

Thread Tools

Similar help and support threads
Thread Forum
Unattend.xml error adding registry key
I'm struggeling a ,ot right now getting my unattend.xml file to work but everytime I end up with an error. It seems to be when i try to add a registry key during the setup because when I remove the line my unattend file works perfectly. Can someone help me editing the unattend file correctly ??...
Adding Registry Key
I tried to add the following to my Windows 7 registry. Windows Registry Editor Version 5.00 "NominalRange"=dword:1 But get this error message whether I double click or merge the file. “Cannot import C:\filepath\WMCBlack.reg: Error accessing the registry.
General Discussion
question about adding new hardware
Hi, I'm about to get myself a new mobo/proc/memory upgrade and a new copy of windows 7 (using xp now) Harddrive and graphic card will be replaced later on My question is: when i add the new hd an card in a month or two and i do a clean installation of windows 7 will it tell me that i can not...
General Discussion
adding 4 gigs of ram question
I have a Gigabyte P55M-UD2 Motherboard running 4 gigs of ram has anyone with this same board ran 8 gigs without problems? Here is the ram I plan to double. - G.SKILL 4GB (2 x 2GB) 240-Pin DDR3 SDRAM DDR3 1600 (PC3 12800) Dual Channel Kit Desktop Memory Model F3-12800CL9D-4GBNQ Thanks...
Hardware & Devices
Question on Adding another OS.
Okay, this might get a little long winded but I have a hypothetical set of questions to ask. Background on specs..See image... Disk 0 Simply storage. Disk 1 Vista (C: Windows7 (F: Data/Storage (G: Disk 2 (H: Usb Storage Drive. Disk 3 (K: Usb Backups from Windows7/Vista image created from...
Installation & Setup

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 21:38.
Twitter Facebook Google+