Madshi
asked on
manipulating registry in dos
Hi friends,
I've something in my mind that it was possible to manipulate the registry in dos somehow. Perhaps adding a *.reg file or something like that. I just don't remember how it worked exactly. Thank you... :-)
Regards, Madshi.
I've something in my mind that it was possible to manipulate the registry in dos somehow. Perhaps adding a *.reg file or something like that. I just don't remember how it worked exactly. Thank you... :-)
Regards, Madshi.
thats strings and dwords and here a binary:
"some value"=hex:01,00,11,00,01, 10,00,01,0 1,10,01,00 ,01,11,00, 11,01,10,1 0,\
00,01,10,01,00
do you know what that spells (8bit ;-)
"some value"=hex:01,00,11,00,01,
00,01,10,01,00
do you know what that spells (8bit ;-)
ASKER
Hi Barry... :-)
And that works in DOS (not DOS-window, but "real" DOS 95/98), too? RegEdit is a 32bit executable, or am I wrong?
Thanx... Madshi.
And that works in DOS (not DOS-window, but "real" DOS 95/98), too? RegEdit is a 32bit executable, or am I wrong?
Thanx... Madshi.
hi,
madshi dont know as dont have real dos (just pretend dos)
i tested it in a dos window ,
do you want to do it from "reboot in dos mode"? i can try that ;-)
can you test and let me know or dont you have real dos either?(no if i remember you have every operating system ever ;-)
if you have real dos ,when your real dos is loaded is windows loaded too?
otherwise youd have to get into the .dat? (main registry)file would'nt you
i was reading the other day actually about calling api's like shellexecute etc from dos(in c) ,but i cant remember if it was pure dos or pretend dos..
madshi dont know as dont have real dos (just pretend dos)
i tested it in a dos window ,
do you want to do it from "reboot in dos mode"? i can try that ;-)
can you test and let me know or dont you have real dos either?(no if i remember you have every operating system ever ;-)
if you have real dos ,when your real dos is loaded is windows loaded too?
otherwise youd have to get into the .dat? (main registry)file would'nt you
i was reading the other day actually about calling api's like shellexecute etc from dos(in c) ,but i cant remember if it was pure dos or pretend dos..
ASKER
I'm not talking about dos 6.22, I'm talking about the win9x dos. I mean, every win9x computer first boots dos, then after that it loads win9x on top of dos. And *before* win9x loads, I need to manipulate the registry.
Or in simpler words: I want to put a command in the autoexec.bat that manipulates the registry somehow.
I don't think RegEdit works there, because it's a 32bit executable. At least I thought so... :-)
Or in simpler words: I want to put a command in the autoexec.bat that manipulates the registry somehow.
I don't think RegEdit works there, because it's a 32bit executable. At least I thought so... :-)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Odd, as
http://www.zdjournals.com/w9p/9608/w9p9682.htm
seems to agree with you Barry that you should be able to add *.reg files from Dos...
Tim.
http://www.zdjournals.com/w9p/9608/w9p9682.htm
seems to agree with you Barry that you should be able to add *.reg files from Dos...
Tim.
ASKER
It *DOES* work, I tested it both under win95 and win98. Perhaps the format of your reg file was not correct... :-)
Thank you, friends!
Regards, Madshi.
Thank you, friends!
Regards, Madshi.
madshi can you send me an example reg file and bat becuase i tried it 3 times once worked and twice didnt ,after reading regedit.com i deleted the one that did by mistake now i dont know what i did to make it work the first time :-(
I run regedit from a logon script to apply or remove registry restrictions depending on user. Correct call from dos environment is:
regedit.exe /s <path> <regfile.reg>
/s will supress the confirmation dialog.
I apply/remove restrictions on IE, control pannel, desktop and such this way. Works in win98, win2k, and WinXP.
Chuck
regedit.exe /s <path> <regfile.reg>
/s will supress the confirmation dialog.
I apply/remove restrictions on IE, control pannel, desktop and such this way. Works in win98, win2k, and WinXP.
Chuck
just create a batch file that look like:
echo off
REGEDIT /s SOME.REG
/s is for silent mode..
i presume you know the layout of .reg files?
my some.reg looks like:
REGEDIT4
[HKEY_CURRENT_USER\Softwar
"CheckBox1"=dword:00000001
"CheckBox2"=dword:00000001
"CheckBox3"=dword:00000000
"Edit1"="some text "
"Edit2"="some more text"
"TrackBar1"=dword:00000006
..
Regards Barry