Leser: 10
7 Einträge, 1 Seite |
1
2
"C:\Programme\Log Parser 2.2\LogParser.exe" "SELECT Message, SourceName INTO appevent.tsv FROM \\*****\application WHERE sourcename = 'eTrust ITM' AND ComputerName LIKE '*****'" -i:evt -o:tsv -fileMode:0 -icheckpoint:appevent.lpc
FOR /F "delims= " %%t IN (appevent.tsv) DO eventcreate /T ERROR /ID 200 /L Application /D "%%t"
/D "%%t"
eventcreate
1
2
3
4
for /f "delims=" %%q in (appevent.tsv) do (
set "hochkomm=%%q"
echo !hochkomm:"=!
)
1
2
3
4
5
6
7
8
9
10
@echo on
Set datei=appevent.tsv
"C:\Programme\Log Parser 2.2\LogParser.exe" "SELECT EventTypeName, SourceName, EventID, ComputerName, Message INTO appevent.tsv FROM \\*****\Application WHERE sourcename = 'eTrust ITM' AND ComputerName LIKE '*****'" -i:evt -o:tsv -fileMode:0 -icheckpoint:appevent.lpc
call hochkomm.bat>test.txt
copy "test.txt" "appevent.tsv"
FOR /F "tokens=1-4 usebackq delims= " %%a IN (%datei%) DO (
eventcreate /T %%a /SO %%b /ID %%c /L Application /D "%%d"
)
pause
del "test.txt"
1
2
3
4
5
@echo off & setlocal EnableDelayedExpansion
for /f "delims=" %%q in (appevent.tsv) do (
set "hochkomm=%%q"
echo !hochkomm:"=!
)
7 Einträge, 1 Seite |