Reputation: 71
I want to run the Tshark.exe in a background. Please can you tell me what is the problem in this command.
start /b "c:\Program Files\Wireshark\tshark.exe" -i 1 -w file1.pcap
This cmd is giving me this error "Windows can not find '-i'......)
Upvotes: 7
Views: 51823
Reputation: 1
i counter this problem also,and i found when use "start /b" you cannot use full path exe to run.you only can you %PATH% or copy the exe to current path.
Upvotes: 0
Reputation: 1153
set PATH=%PATH%;c:\Program Files\Wireshark\
start /B tshark -f -i 1 -w file1.pcap
Upvotes: 0
Reputation: 43219
start /b "Window Title" "c:\Program Files\Wireshark\tshark.exe" -i 1 -w file1.pcap
start
interprets the first string enclosed in double quotes as the title of the window it should create.
Update:
After @Ray Toal's comments I tried some combinations:
L:\>start /b "L:\tools\scjview.exe" -i
The system cannot find the file -i.
L:\>start /b "test" "L:\tools\scjview.exe" -i
L:\>
Upvotes: 11