I need to launch these 2 windows in parallel. So side by side the logs can
be viewed. The command sheel seems to spawn one and then the other when it is closed.
Thanks,
I have a cmd script that searches 2 log files and then writes the
output to disk.
How do I launch 2 notepad sessions, one for each file within the
script.
Is this possible with the Windows cmd shell?
The only viewer I know of is Notepad, if anyone knows of a better
simple windows viewer please let me know.
Thanks,
-------------------------------------------------------------------------------------------------------
cls
Rem Application Name
set name=Epo Application Log Parser %date% Client to ePO Server
Rem Author
Author Gregg Dotoli
Rem Created
set When="August 25,2009"
rem set logname
set alog=server.log
rem set path on Server to log
set logpath=Crogra~1\mcafee\epolic~1\db\logs\
Title %name% Running at %time% on %date% Searchin %alog%
color 17
findstr "%1" %logpath%%alog% > %alog%_%1.txt & notepad %alog%_%1.txt
rem set logname
set dblog=orion.log
rem set path on Server to log
set logpath=Crogra~1\mcafee\epolic~1\server\logs\
Title %name% Running at %time% on %date% Searching %dblog%
color 71
findstr %1 %logpath%%dblog% > %dblog%_%1.txt & notepad %dblog%_%1.txt
Gregg Dotoli
be viewed. The command sheel seems to spawn one and then the other when it is closed.
Thanks,
I have a cmd script that searches 2 log files and then writes the
output to disk.
How do I launch 2 notepad sessions, one for each file within the
script.
Is this possible with the Windows cmd shell?
The only viewer I know of is Notepad, if anyone knows of a better
simple windows viewer please let me know.
Thanks,
-------------------------------------------------------------------------------------------------------
cls
Rem Application Name
set name=Epo Application Log Parser %date% Client to ePO Server
Rem Author
Author Gregg Dotoli
Rem Created
set When="August 25,2009"
rem set logname
set alog=server.log
rem set path on Server to log
set logpath=Crogra~1\mcafee\epolic~1\db\logs\
Title %name% Running at %time% on %date% Searchin %alog%
color 17
findstr "%1" %logpath%%alog% > %alog%_%1.txt & notepad %alog%_%1.txt
rem set logname
set dblog=orion.log
rem set path on Server to log
set logpath=Crogra~1\mcafee\epolic~1\server\logs\
Title %name% Running at %time% on %date% Searching %dblog%
color 71
findstr %1 %logpath%%dblog% > %dblog%_%1.txt & notepad %dblog%_%1.txt
Gregg Dotoli