XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).
Moderator: General Moderators
tecktalkcm0391
DevNet Resident
Posts: 1030 Joined: Fri May 26, 2006 9:25 am
Location: Florida
Post
by tecktalkcm0391 » Sat Sep 02, 2006 7:43 pm
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?
volka
DevNet Evangelist
Posts: 8391 Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger
Post
by volka » Sun Sep 03, 2006 4:58 am
Why shouldn't users see that the script enables all the warnings of the winxp security center?
tecktalkcm0391
DevNet Resident
Posts: 1030 Joined: Fri May 26, 2006 9:25 am
Location: Florida
Post
by tecktalkcm0391 » Sun Sep 03, 2006 9:33 am
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.
Buddha443556
Forum Regular
Posts: 873 Joined: Fri Mar 19, 2004 1:51 pm
Post
by Buddha443556 » Sun Sep 03, 2006 11:31 am
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.