Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Reply
 
LinkBack Thread Tools Display Modes
Old 01-01-2012, 06:21 PM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Dec 2011
Posts: 20
Default batch file to add registry key


i want to create a batch file which will add its directory path to registry as a string value.
abhayalmighty is offline   Reply With Quote
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 01-01-2012, 07:07 PM   #2 (permalink)
Alpha Geek
 
Join Date: Jan 2007
Location: In your hearts
Posts: 828
Default Re: batch file to add registry key

just google it!!
abhijangda is online now   Reply With Quote
Old 01-01-2012, 09:04 PM   #3 (permalink)
Stuck in Time...
 
Vyom's Avatar
 
Join Date: May 2009
Location: Land of Logic
Posts: 2,269
Default Re: batch file to add registry key

Yeah... google it.. and if you are too lazy, here is what would I have done..

1. Create a reg file(s) for the key containing the string
2. Create a batch file which would call those reg files, in separate lines
3. Just run the batch file...
__________________
Marty: Hey, Doc, we better back up. We don't have enough road to get up to 88.
Doc Brown: Roads? Where we're going, we don't need, "roads!" :)

──── On the Internet you can be Anything you want. It's Strange that, so many people choose to be Stupid! ────
Vyom is online now   Reply With Quote
Old 02-01-2012, 02:36 PM   #4 (permalink)
Right Off the Assembly Line
 
Join Date: Dec 2011
Posts: 20
Default Re: batch file to add registry key

how to i get batch file's directory path. And ho to put it in reg file
abhayalmighty is offline   Reply With Quote
Old 02-01-2012, 08:02 PM   #5 (permalink)
Stuck in Time...
 
Vyom's Avatar
 
Join Date: May 2009
Location: Land of Logic
Posts: 2,269
Default Re: batch file to add registry key

See the following guides:
How to add, modify, or delete registry subkeys and values by using a registration entries (.reg) file
Batch files - Use REGEDIT to add, read or delete registry values

To know path of any file, just right click on it, and select properties.
__________________
Marty: Hey, Doc, we better back up. We don't have enough road to get up to 88.
Doc Brown: Roads? Where we're going, we don't need, "roads!" :)

──── On the Internet you can be Anything you want. It's Strange that, so many people choose to be Stupid! ────
Vyom is online now   Reply With Quote
Old 03-01-2012, 11:44 AM   #6 (permalink)
Right Off the Assembly Line
 
Join Date: Dec 2011
Posts: 20
Default Re: batch file to add registry key

got it. thnx for replying.
close this post mods
abhayalmighty is offline   Reply With Quote
Old 03-01-2012, 01:46 PM   #7 (permalink)
Stuck in Time...
 
Vyom's Avatar
 
Join Date: May 2009
Location: Land of Logic
Posts: 2,269
Default Re: batch file to add registry key

Doesn't work like that. You will have to post how exactly did you preform your task, and then this thread can be closed.
__________________
Marty: Hey, Doc, we better back up. We don't have enough road to get up to 88.
Doc Brown: Roads? Where we're going, we don't need, "roads!" :)

──── On the Internet you can be Anything you want. It's Strange that, so many people choose to be Stupid! ────
Vyom is online now   Reply With Quote
Old 03-01-2012, 07:09 PM   #8 (permalink)
Right Off the Assembly Line
 
Join Date: Dec 2011
Posts: 20
Default Re: batch file to add registry key

Quote:
Originally Posted by Vyom View Post
Yeah... google it.. and if you are too lazy, here is what would I have done..

1. Create a reg file(s) for the key containing the string
2. Create a batch file which would call those reg files, in separate lines
3. Just run the batch file...
that's how i got it to work now plz close this post
abhayalmighty is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
Refbacks are On


 
Latest Threads
- by Charan
- by Sarath
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 12:38 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2