Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows 'start /b' command problem

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'......)

like image 742
sushant Avatar asked Jul 25 '11 09:07

sushant


1 Answers

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:\>
like image 156
Jacob Avatar answered Oct 12 '22 22:10

Jacob