#152151 - 2005-11-23 09:15 PM
Silly Question, but you guys will know
|
Aaron Perrault
Fresh Scripter
Registered: 2003-08-29
Posts: 27
Loc: Emeryville, CA
|
OK guys, I know that you will be able to help me in a heart beat. What is the equivelant command to DOS's old ECHO OFF command? In the login script that we were working on the other day, (the one with shell 'net stop "Automatic Updates"', since I am displaying a pretty box with login info etc, that line and a couple others are displaying in the box, and making it look less pretty (my users like pretty). I want those lines of code to run, but I dont need to see the results on the screen. Any ideas?
This is what I have, but I KNOW that it doesnt work.
ECHO OFF If Exist ("%wiwndir%\system32\pskill.exe") Display ("File Exists") Else Copy @ldrive+\files\pskill.exe ("%windir%\system32") ; Run ("%windir%\system32\pskill.exe wauclt")
Shell 'net stop "Automatic Updates"' Shell 'net start "Automatic Updates"' Run ("%windir%\system32\wuauclt.exe /resetauthorization /detectnow")
SetTime "@lserver"
Thanks guys,
app
|
|
Top
|
|
|
|
#152152 - 2005-11-23 09:39 PM
Re: Silly Question, but you guys will know
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
You cannot always stop commands outputting to the console.
Sometimes you can bin the output by redirecting it to the bit-bucket: Code:
Shell '"'+%COMSPEC%+'" /C net stop "Automatic Updates" >NUL: 2>NUL:'
|
|
Top
|
|
|
|
#152154 - 2005-11-23 11:08 PM
Re: Silly Question, but you guys will know
|
Aaron Perrault
Fresh Scripter
Registered: 2003-08-29
Posts: 27
Loc: Emeryville, CA
|
I am using the PSKill in case the process is running. I probably dont really need it, but I would prefer to be safe, since I will then be starting it again.
app
|
|
Top
|
|
|
|
#152156 - 2005-11-23 11:33 PM
Re: Silly Question, but you guys will know
|
Aaron Perrault
Fresh Scripter
Registered: 2003-08-29
Posts: 27
Loc: Emeryville, CA
|
my mistake, I missed that typo.
thanks
aaron
|
|
Top
|
|
|
|
#152162 - 2005-11-28 05:23 PM
Re: Silly Question, but you guys will know
|
Aaron Perrault
Fresh Scripter
Registered: 2003-08-29
Posts: 27
Loc: Emeryville, CA
|
Hey guys, thanks for all the info. I knew that the two were connected, but not that directly. I will definetly remove the PSKill from the script, and just use the net stop command.
I hope everyone had a good weekend.
Now on to the Christmas Holidays, yippee, yippee!! (Dripping with sarcasm if it didnt come across!!)
thanks again
app
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 525 anonymous users online.
|
|
|