Article View: pl.comp.os.ms-windows.winnt
Article #286514Re: Usuwanie mat-debug
From: artiun
Date: Sun, 08 Jun 2025 16:39
Date: Sun, 08 Jun 2025 16:39
52 lines
2672 bytes
2672 bytes
W dniu 2025-06-04 o 16:35, Zeter pisze:
> On 26.05.2025 17:27, Zeter wrote:
>> Jak usunąć definitywnie pliki mat-debugxxx.log
>> tworzone co kilka minut w temp.
>
> Nieprecyzyjnie napisałem o wywaleniu skutecznym. Samo usunięcie jest
> proste jak konstrukcja pewnej maszyny.
> Marzenie, by nigdy się nie pojawiały po zamknięciu Teams
> bez konieczności usuwania śmieci po nim.
...
> Teams musi koniecznie istnieć po wylogowaniu. Rozumiem po co,
> ale nie życzę sobe po sesji jego dalszego rezydowania. Trudno.
>
Skrypt .js. Co robi:
- Uruchamia serwis programu (u Ciebie tego nie ma)
- Uruchamia właściwy program
- Zamyka serwis (w Twoim przypadku kasowanie plików mat*.log)
Po uruchomieniu skryptu uruchomi się program, skrypt będzie czekał na
zamknięcie programu, potem możesz dodać zabicie pozostałości wiszące po
team (kill) i dodać kasowanie plików .log.
var cNLPath = "E:\\WinsApp\\Net\\NetLimiter\\";
var cNLExe = "NLStart.exe";
var cNLCommand = "";
var cNLSvc = "NLService";
var nWaitStart = 1000;
//
// ExecCommand (lWait - czekanie na zakończenie wykoanania)
//
function ExecCommand( cPar, lWait )
{
var myWShell, cComm;
myWShell = WScript.CreateObject( "WScript.Shell" );
if( cPar != "" )
myWShell.Run ( cPar, 0, lWait );
return( true );
}
//
// Start Service, start NetLimiter
//
//ExecCommand( "net start " + cNLSvc, false );
//WScript.Sleep( nWaitStart );
ExecCommand( "\"" + cNLPath + cNLExe + "\" " + cNLCommand, true );
// ExecCommand( "net stop " + cNLSvc, false );
// Tu zabicie pozostałości
ExecCommand( "cmd.exe /C " + "del /F /Q "E:\XXX\mat*.log", false );
Technical Details
Message-ID:
<1024eco$7fi$1@news.chmurka.net>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.chmurka.net!.POSTED.5.172.255.79!not-for-mailReferences:
<101219s$22k1m$1@dont-email.me> <101pljr$sf46$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.chmurka.net!.POSTED.5.172.255.79!not-for-mail From: artiun <artiun@wp.pl> Newsgroups: pl.comp.os.ms-windows.winnt Subject: Re: Usuwanie mat-debug Date: Sun, 8 Jun 2025 18:39:53 +0200 Organization: news.chmurka.net Message-ID: <1024eco$7fi$1@news.chmurka.net> References: <101219s$22k1m$1@dont-email.me> <101pljr$sf46$1@dont-email.me> MIME-Version: 1.0 Injection-Date: Sun, 8 Jun 2025 16:39:52 -0000 (UTC) Injection-Info: news.chmurka.net; posting-account="artiun"; posting-host="5.172.255.79"; logging-data="7666"; mail-complaints-to="abuse-news.(at).chmurka.net" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:dKE8LiA1o1T/lkCMqhM4aSQIal0= sha256:+h1+Tdd1+8P8Xd4i2YgZUra241bY3oubC09NQlzvjmk= sha1:drdN4pk5rRFlklOi9IcAmTwkN6Y= sha256:Uq+ohAjQQpZ79FVkXZKrWVFVHh2GFAcSDZoqrfiiT0M= In-Reply-To: <101pljr$sf46$1@dont-email.me> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit