標題很長

只是為了我要把iperf隱藏執行,並且把結果存成文字檔。

批次檔

iperf -c 192.168.0.1 -u -t10 >> log.txt

程式

#include <windows.h>

int main(void)
{
    WinExec("test.bat", SW_HIDE);
    return 0;
}

本源碼絕對沒有測試過

我只有用別的程式試過