Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 19th, 2005, 11:09 PM   #1
darklegend
Newbie
 
Join Date: Mar 2005
Posts: 3
Rep Power: 0 darklegend is on a distinguished road
Edit registry via Command Prompt/Batch? [SOLVED]

Can you edit the registry via command prompt? Say I wanted to change a string value to 0 or 1 can it be done?

If anyone has a batch script that can edit a registry value that would be great.

Thanks in advance.

Last edited by darklegend; Mar 19th, 2005 at 11:30 PM.
darklegend is offline   Reply With Quote
Old Mar 19th, 2005, 11:22 PM   #2
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 6 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
The only way to edit the registry is through a C++ program with the Windows APIs being used. Because DOS programs have no business accessing windows registry APIs, because they don't normally run in the windows environment, there is no real program for the OS that is made for this task. However, you can create your own C++ program, or ask around for someone that might have already done it.
__________________

tempest is offline   Reply With Quote
Old Mar 19th, 2005, 11:24 PM   #3
darklegend
Newbie
 
Join Date: Mar 2005
Posts: 3
Rep Power: 0 darklegend is on a distinguished road
Ok i have this

REG ADD HKLM\SOFTWARE\test\test\test\testn /v TEST /t  REG_SZ /d 1

but it's "Too many command-line parameters", anyway around this?

EDIT: How do i do a SPACE (blank space) in command prompt? Thats my problem...

Last edited by darklegend; Mar 19th, 2005 at 11:28 PM.
darklegend is offline   Reply With Quote
Old Mar 19th, 2005, 11:25 PM   #4
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 6 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
Oh shit, cool, there's a command to do it... didn't know about that.

I don't know man, if i had windows i could tell you.. but sadly i don't...
__________________

tempest is offline   Reply With Quote
Old Mar 19th, 2005, 11:30 PM   #5
darklegend
Newbie
 
Join Date: Mar 2005
Posts: 3
Rep Power: 0 darklegend is on a distinguished road
Sorted it
darklegend is offline   Reply With Quote
Old Mar 19th, 2005, 11:49 PM   #6
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 6 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
Cool man, mind posting the working command so i know how to use it?

Now that i know there is a command for it i'm interested lol.
__________________

tempest is offline   Reply With Quote
Old Mar 23rd, 2005, 10:47 PM   #7
layer
Hobbyist Programmer
 
Join Date: Feb 2005
Posts: 112
Rep Power: 4 layer is on a distinguished road
Exclamation hehe

AutoIt v3 has registry functions...
layer is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:44 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC