![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Mar 2005
Posts: 3
Rep Power: 0
![]() |
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 10:30 PM. |
|
|
|
|
|
#2 |
|
Programming Guru
![]() |
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.
__________________
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Mar 2005
Posts: 3
Rep Power: 0
![]() |
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 10:28 PM. |
|
|
|
|
|
#4 |
|
Programming Guru
![]() |
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...
__________________
|
|
|
|
|
|
#5 |
|
Newbie
Join Date: Mar 2005
Posts: 3
Rep Power: 0
![]() |
Sorted it
![]() |
|
|
|
|
|
#6 |
|
Programming Guru
![]() |
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.
__________________
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|