There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware missing monitor network networking outlook outlook 2003 outlook 2007 outlook express password popups problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Batch File


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
cj_white's Avatar
Senior Member with 335 posts.
 
Join Date: Oct 2001
10-Oct-2002, 12:32 PM #1
Batch File
if i want to create a batch file to create a new registry entry what command do i use?
Rockn's Avatar
Computer Specs
Distinguished Member with 17,888 posts.
 
Join Date: Jul 2001
Location: Mexico of the North, MN
Experience: Disenfranchised American Male
10-Oct-2002, 01:59 PM #2
You don't need a batch file...just learn the syntax for the registry keys...open notepad and edit and save as a .reg file.
cj_white's Avatar
Senior Member with 335 posts.
 
Join Date: Oct 2001
10-Oct-2002, 03:46 PM #3
if i'm trying to add a string to a key what command do i use to enter in the string?

so far this is what i have

regcreatekeyex HKEY_CURRENT_USER/software/microsoft/internet explorer/main

when i execute this as a .reg it tells me its not a registry script. any thoughts would be appreciated
brendandonhu's Avatar
Distinguished Member with 15,988 posts.
 
Join Date: Jul 2002
Location: Ann Arbor, MI
Experience: Advanced
11-Oct-2002, 07:16 AM #4
THeres an easier way. GO into regedit, create the key, then choose to export the key. It will save it as a .reg for you and clicking will add the key.
Also it starts with REGEDIT4 at least in Windows 98 it does. If you want the tree you mentioned to match mine it would appear like this:

REGEDIT4

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Anchor Underline"="yes"
"Cache_Update_Frequency"="Once_Per_Session"
"Display Inline Images"="yes"
"Do404Search"=hex:01,00,00,00
"Local Page"="C:\\WINDOWS\\SYSTEM\\blank.htm"
"Save_Session_History_On_Exit"="no"
"Show_FullURL"="no"
"Show_StatusBar"="yes"
"Show_ToolBar"="yes"
"Show_URLinStatusBar"="yes"
"Show_URLToolBar"="yes"
"Start Page"="http://forums.techguy.org/"
"Use_DlgBox_Colors"="yes"
"Search Page"="http://www.microsoft.com/isapi/redir.dll?prd=ie&ar=iesearch"
"Show_ChannelBand"="no"
"FullScreen"="no"
"Window_Placement"=hex:2c,00,00,00,02,00,00,00,03,00,00,00,b8,0b,00,00,b8,0 b,\
00,00,ff,ff,ff,ff,ff,ff,ff,ff,00,00,00,00,00,00,00,00,20,03,00,00,32,02,00, \
00
"Default_Page_URL"="http://desktop.presario.net/scripts/redirectors/presario/deskredir.dll?c=2c00&s=consumer&LC=0409"
"SmallBitmap"="c:\\Program Files\\Internet Explorer\\Compaq logos\\static22.bmp"
"BigBitmap"="c:\\Program Files\\Internet Explorer\\Compaq logos\\static38.bmp"
"ChannelsURL"="http://www.iechannelguide.com/guide/en/en_us.asp"
"ChannelsFirstURL"="res://ie4tour.dll/channels.htm"
"Check_Associations"="no"
"LastCheckedHi"=dword:01c25f3d
"Use FormSuggest"="no"
"Print_Background"="yes"
"NoJITSetup"=dword:00000000
"NotifyDownloadComplete"="yes"
"Error Dlg Displayed On Every Error"="no"
"Default_Search_URL"="http://www.microsoft.com/isapi/redir.dll?prd=ie&ar=iesearch"
"Error Dlg Details Pane Open"="yes"
"HistoryViewType"=hex:00,00
"Expand Alt Text"="no"
"Move System Caret"="no"
"NoUpdateCheck"=dword:00000000
"NscSingleExpand"=dword:00000001
"Disable Script Debugger"="yes"
"Page_Transitions"=dword:00000001
"AllowWindowReuse"=dword:00000000
"Friendly http errors"="yes"
"ShowGoButton"="yes"
"SmoothScroll"=dword:00000001
"Play_Animations"="yes"
"Play_Background_Sounds"="yes"
"Display Inline Videos"="yes"
"Show image placeholders"=dword:00000000
"FormSuggest Passwords"="no"
"FormSuggest PW Ask"="no"
"AddToFavoritesExpanded"=dword:00000000
"HistoryTopNSitesView"=dword:00000014
"NoWebJITSetup"=dword:00000000
"Enable Browser Extensions"="yes"
"Force Offscreen Composition"=dword:00000000
"Enable AutoImageResize"="yes"
"Enable_MyPics_Hoverbar"="yes"
"AutoSearch"=dword:00000004
"Save Directory"="C:\\WINDOWS\\Desktop\\"
"Window Title"="Microsoft Internet Explorer"
"Search Bar"="http://jump.altavista.com/start/ie4"
"Use Custom Search URL"=dword:00000001
__________________
-Brendan
cj_white's Avatar
Senior Member with 335 posts.
 
Join Date: Oct 2001
11-Oct-2002, 01:58 PM #5
Cool! that worked. i was trying to make it a lot more difficult that it slhould have been. thanks for the help
brendandonhu's Avatar
Distinguished Member with 15,988 posts.
 
Join Date: Jul 2002
Location: Ann Arbor, MI
Experience: Advanced
11-Oct-2002, 03:14 PM #6
No problem and you dont even have to write it yourself, just export what you want from regedit.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:40 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.