KarachiKing555
Jan 8 2004, 10:07 PM
hi,
i wana regedit via batch but lil confused wat to doo if u wana dword or binary values
[CODE]
:Win9X
> "%Temp%.\regpatch.reg" ECHO REGEDIT4
>>"%Temp%.\regpatch.reg" ECHO.
>>"%Temp%.\regpatch.reg" ECHO [HKEY_LOCAL_MACHINE\Microsoft\Windows\CurrentVersion\Network\blah]
>>"%Temp%.\regpatch.reg" ECHO "blah"="401" This 1 is dword
>>"%Temp%.\regpatch.reg" ECHO.
should i add %Temp%.\regpatch.reg" ECHO [HKEY_LOCAL_MACHINE\Microsoft\Windows\CurrentVersion\Network\blah]
>>"%Temp%.\regpatch.reg" ECHO "blah"="dword:401"
VorteX
Jan 9 2004, 10:43 AM
just use the export function of regedit for a dwordkey and see what it outputs, that's what you have to write in your echo, same for the binvalues
KarachiKing555
Jan 9 2004, 12:16 PM
k thet pro is solved ! but now its not create new keyz and values ! even if i code new key and values .reg file !!! its not working
VorteX
Jan 11 2004, 06:25 PM
are you sure you used this line in your batch?
| CODE |
| REGEDIT /S regpatch.reg |
KarachiKing555
Jan 12 2004, 10:42 PM
yeah iam sure !!
here is the code for bat file
| CODE |
@echo off > "c:\regpatch.reg" ECHO Windows Registry Editor Version 5.00 >>"c:\regpatch.reg" ECHO. >>"c:\regpatch.reg" ECHO [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run] >>"c:\regpatch.reg" ECHO "tskmgrr"="%windir%\toko.exe" >>"c:\regpatch.reg" ECHO. REGEDIT /S "c:\regpatch.reg" DEL "c:\regpatch.reg"
|
even when i double click the generated registry.reg file it does'nt adds the values where they supposed to bee !! i totaly confused !!!
dr0n3
Jan 18 2004, 06:20 AM
change...
| CODE |
| >>"c:\regpatch.reg" ECHO "tskmgrr"="%windir%\toko.exe" |
to...
| CODE |
| >>"c:\regpatch.reg" ECHO "tskmgrr"="%%windir%%\\toko.exe" |
beardednose
Jan 19 2004, 06:30 PM
Welcome, dron3. Welcome. Hate to shake one hand and hit ya with the other, bud, but...
Please ditch your signature promptly and check out
http://www.governmentsecurity.org/forum/in...?showtopic=5916 for more info.
n3mesis
Jan 19 2004, 11:48 PM
Off the subject, wow its vortex, hows it going dude
Axl
Jan 23 2004, 01:58 AM
| QUOTE (KarachiKing555 @ Jan 8 2004, 10:07 PM) |
hi, i wana regedit via batch but lil confused wat to doo if u wana dword or binary values
[CODE] :Win9X > "%Temp%.\regpatch.reg" ECHO REGEDIT4 >>"%Temp%.\regpatch.reg" ECHO. >>"%Temp%.\regpatch.reg" ECHO [HKEY_LOCAL_MACHINE\Microsoft\Windows\CurrentVersion\Network\blah] >>"%Temp%.\regpatch.reg" ECHO "blah"="401" This 1 is dword >>"%Temp%.\regpatch.reg" ECHO.
should i add %Temp%.\regpatch.reg" ECHO [HKEY_LOCAL_MACHINE\Microsoft\Windows\CurrentVersion\Network\blah] >>"%Temp%.\regpatch.reg" ECHO "blah"="dword:401" |
i prefer using microsoft reg.exe cmd line reg editer.
KarachiKing555
Jan 24 2004, 01:02 AM
| QUOTE (QuantumTopology @ Jan 23 2004, 01:58 AM) |
| QUOTE (KarachiKing555 @ Jan 8 2004, 10:07 PM) | hi, i wana regedit via batch but lil confused wat to doo if u wana dword or binary values
[CODE] :Win9X > "%Temp%.\regpatch.reg" ECHO REGEDIT4 >>"%Temp%.\regpatch.reg" ECHO. >>"%Temp%.\regpatch.reg" ECHO [HKEY_LOCAL_MACHINE\Microsoft\Windows\CurrentVersion\Network\blah] >>"%Temp%.\regpatch.reg" ECHO "blah"="401" This 1 is dword >>"%Temp%.\regpatch.reg" ECHO.
should i add %Temp%.\regpatch.reg" ECHO [HKEY_LOCAL_MACHINE\Microsoft\Windows\CurrentVersion\Network\blah] >>"%Temp%.\regpatch.reg" ECHO "blah"="dword:401" |
i prefer using microsoft reg.exe cmd line reg editer.
|
wat if u wana do it remotely !!
The Doom Master
Jan 24 2004, 04:46 PM
KarachiKing555
Jan 27 2004, 12:28 AM
thx mate quite helpfull
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.