KarachiKing555
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
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
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
are you sure you used this line in your batch?
CODE
REGEDIT /S regpatch.reg
KarachiKing555
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
change...

CODE
>>"c:\regpatch.reg" ECHO "tskmgrr"="%windir%\toko.exe"


to...

CODE
>>"c:\regpatch.reg" ECHO "tskmgrr"="%%windir%%\\toko.exe"

beardednose
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
Off the subject, wow its vortex, hows it going dude dry.gif
Axl
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
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
mate i think u need to check this out

http://www.jsiinc.com/SUBF/TIP2700/rh2750.htm
KarachiKing555
thx mate quite helpfull smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.