Wireshark-users: [Wireshark-users] Starting tshark from Windows scheduler

From: "Ludovit Boda" <lboda@xxxxxxx>
Date: Fri, 19 Oct 2007 09:58:10 +0200
Hallo,
 
I want to start tshark from Windows XP scheduler every day at defined time with 1 hour duration. Every captured file has a time stamp in its name.
 
I wrote batch file tshark.bat >
 
if exist "C:\Progra~1\Wireshark\tshark.exe" (
 set subor=C:\Temp\WIRESHARK\LX_%DATE:~11,4%-%DATE:~7,2%-%DATE:~3,2%_%TIME:~0,2%-%TIME:~3,2%-%TIME:~6,2%.cap
:: echo Starting tshark into file %subor%
 C:\Progra~1\Wireshark\tshark.exe -i\Device\NPF_{F0E24F86-72AA-474B-A40A-17191A47E013} -aduration:3600 -f"host 10.0.10.77" -w"%subor%"
) else (
    echo Wireshark is not installed !!
)
 
 
Batch file starts tshark.exe, when I run it manually from command line
But it doesn't work when I start it from sheduler.
 
Have you ever had problem like this? Please advise.
I didn't try it with some shell and Linux cron, because need it under Windows unfortunately ... ;o(
 
 
Thanks a lot for help,
Ludo