oO-NichtsNutz-Oo
Grünschnabel
Hey Leute,
ich wollte mir ein kleines Programm zurecht machen, das mir in einer Datei die Informationen wiedergibt. Mein Problem liegt irgendwie darin, das sich:
1. die PTNI.log_jaxy - Datei nicht in PTNI.jaxy kopieren lässt
2. die PTNI.log_jaxy nicht löscht wird.
Danke im voraus
ich wollte mir ein kleines Programm zurecht machen, das mir in einer Datei die Informationen wiedergibt. Mein Problem liegt irgendwie darin, das sich:
1. die PTNI.log_jaxy - Datei nicht in PTNI.jaxy kopieren lässt
2. die PTNI.log_jaxy nicht löscht wird.
Danke im voraus

Code:
@echo off
if not "%1"=="" goto %1
start /MIN cmd.exe /C "%~nx0 begin"
goto:eof
:begin
set "IP=www.google.de"
set "LOG=PTNI.log_jaxy"
set "JAXY=PTNI.jaxy"
echo *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* >> %LOG%
attrib +H %LOG%
echo * Datum: %DATE% >> %LOG%
echo * Zeit: %TIME% >> %LOG%
echo * Username: %USERNAME% >> %LOG%
echo **PING: >> %LOG%
ping %IP% >> %LOG%
echo **TRACERT: >> %LOG%
tracert %IP% >> %LOG%
echo **NETSAT: >> %LOG%
netstat >> %LOG%
echo **IPCONFIG /ALL: >> %LOG%
IPCONFIG /ALL >> %LOG%
type > %JAXY%
xcopy /b %LOG% %JAXY%
del %LOG% /s /q
start %JAXY%