这是自己使用VS2022 C++开发的批量追加"C:\Windows\System32\drivers\etc\hosts"
文件IP地址与域名的脚本。它可以把cfg.txt文件中例如:
192.168.1.9 test.email
192.168.123.9 doutia.com
批量追加到hosts文件
详细源代码如下:
AddToHostHosts.cpp
//#include <QDebug>
#include <windows.h>
#include <string>
#