开发者

Windows 'start /b' command problem

开发者 https://www.devze.com 2023-03-22 21:11 出处:网络
I want to run the Tshark.exe in a background. Please can you tell me what is the problem in this command.

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


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:\>


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


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消