CMD

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

CMD

Post 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?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Why shouldn't users see that the script enables all the warnings of the winxp security center?
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Post 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.
User avatar
Buddha443556
Forum Regular
Posts: 873
Joined: Fri Mar 19, 2004 1:51 pm

Post 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.
Post Reply