Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要知道,每当我的笔记本电脑打开或连接到互联网时,是否可以通过电子邮件收到通知?
另一种方法是在系统启动时设置服务“开始”时获得通知。
需要此服务的 C# 代码。
如果您在某处有网站并可以访问日志文件,请安装wget或curl然后运行以下命令:
wget
curl
wget -q http://your.site.com/MyLaptopIsConnected
只需在错误日志中搜索此字符串即可查看您的笔记本电脑何时联机。将命令放入 BAT/CMD 文件中,并在计算机使用调度程序启动后告诉 Windows 运行它。