Page 1 of 1

CMD

Posted: Sat Sep 02, 2006 7:43 pm
by tecktalkcm0391
Hey,

Anyone know how to not make this .bat file exit out and not print the files.

Code: Select all

COLOR 17

reg add "HKLM\SOFTWARE\Microsoft\Security Center" /v AntiVirusDisableNotify /t REG_DWORD 

/d 0 /f

CLS    

reg add "HKLM\SOFTWARE\Microsoft\Security Center" /v FirewallDisableNotify /t REG_DWORD /d 

0 /f

CLS   
 
reg add "HKLM\SOFTWARE\Microsoft\Security Center" /v UpdatesDisableNotify /t REG_DWORD /d 

0 /f

CLS    

ECHO 
ECHO
ECHO    Welcome %username%,


SLEEP 15
Its runs then after the last reg add it just stops and exits.

Also anyone know how to hide the first 3 reg adds so users don't see them?

Posted: Sun Sep 03, 2006 4:58 am
by volka
Why shouldn't users see that the script enables all the warnings of the winxp security center?

Posted: Sun Sep 03, 2006 9:33 am
by tecktalkcm0391
I don't want them to see it because I am trying to make a loggin screen that comes up and says welcome and does all the stuff and after X seconds closes it self.

Posted: Sun Sep 03, 2006 11:31 am
by Buddha443556

Code: Select all

@ECHO OFF
The @ sign can be used to suppress the display of a line to the screen. "ECHO OFF" suppresses further display of lines to the screen, use "ECHO ON" to allow output again.