sushant
sushant

Reputation: 71

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

Upvotes: 7

Views: 51823

Answers (4)

timewh
timewh

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

set PATH=%PATH%;c:\Program Files\Wireshark\
start /B tshark -f -i 1 -w file1.pcap

Upvotes: 0

phil
phil

Reputation: 79

start /b "" "c:\Program Files\Wireshark\tshark.exe" -i 1 -w file1.pcap

Upvotes: 7

Jacob
Jacob

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

Related Questions