cmd question regarding adding registry


  1. Posts : 21
    Windows 7 Ultimate x64
       #1

    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]
    "{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


  2. Posts : 3,786
    win 8 32 bit
       #2

    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


  3. Posts : 21
    Windows 7 Ultimate x64
    Thread Starter
       #3

    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


  4. Posts : 3,786
    win 8 32 bit
       #4

    Once you have a .reg file just run

    regedit /s foo.reg

    It will run silent
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 19:29.
Find Us