Batch file help

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




I want to add the following registry keys using a batch file. I don't
want the batch file to import the reg file, I want the batch file to add
the keys itself.
This is the content of the reg file:

Code:
--------------------
[HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe]
"ScreenColors"=dword:0000000a
"FaceName"="Lucida Console"
"FontSize"=dword:000d0000
"FontFamily"=dword:00000036
"FontWeight"=dword:00000190
--------------------
This is what I put in my reg file after reading the reg /? and reg add
/? page in cmd.

Code:
--------------------
reg add HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe /v ScreenColors /t REG_DWORD /d 0000000a /f
reg add HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe /v FaceName /t REG_SZ /d Lucida Console /f
reg add HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe /v FontSize /t REG_DWORD /d 000d0000 /f
reg add HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe /v FontFamily /t REG_DWORD /d 00000036 /f
reg add HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe /v FontWeight /t REG_DWORD /d 00000190 /f
--------------------
But I get 4 errors and only one of them gets added successfully.


--
frankzappa77
.



Relevant Pages

  • Re: script to pin shortcuts to Start menu
    ... tested the .reg file extensively on various computers and it does work ... Thank you and will try this because I am trying to pin to the Start ... The folder "Microsoft Office" can be either in the "All ... So this BATCH file will copy either: ...
    (microsoft.public.windowsxp.general)
  • Re: How to modify and create registry settings.
    ... It is a neither a reg file or batch file ... intRC = objReg.CreateKey(HKLM, strKeyPath) ... if intRC 0 then ...
    (microsoft.public.windows.server.scripting)
  • Re: Run Reg File Silently from Batch File
    ... I would like to develop a batch file that runs the .REG file ... This works if I type it at the command prompt. ... then make sure you select the correct file type. ...
    (microsoft.public.windowsxp.general)
  • Run Reg File Silently from Batch File
    ... Windows Registry Editor Version 5.00 ... I would like to develop a batch file that runs the .REG file ... This works if I type it at the command prompt. ...
    (microsoft.public.windowsxp.general)
  • Re: Registry Edits via .bat files
    ... > Cutting a long story short, i want a batch file that changes IE's ... The easiest way is to set the proxy the way you need and then EXPORT ... merge a .reg file into the registry. ... hives into the registry for easy editing. ...
    (microsoft.public.windowsxp.perform_maintain)