如何制作一个在启动时运行的批处理文件,然后给我发电子邮件
我想创建一个将在 Windows 启动时运行的批处理文件。
我正在运行 Windows 7 专业版。
启动时有一个登录屏幕,但如果需要的话我可以绕过它,但如果我不需要的话,那将是一个额外的好处。
我希望批处理文件在电脑打开时通过任何客户端(最好是 hotmail、outlook、gmail)向我发送电子邮件。
想要这个脚本的原因是我正在远程访问我的路由器以通过 WOL 打开我的电脑,并且我希望在其他人访问时收到通知。
谢谢
I want to create a batch file that will run on windows startup.
I'm running windows 7 professional.
There is a login screen on startup, but I can bypass that if needbe but if I don't have to that would be a bonus.
I would like the batch file to email me through any client, prefrebly hotmail, outlook, gmail, when the PC is turned on.
The reason for wanting this script is i'm accessing my router remotely to turn on my PC via WOL and I would like to be notified in the event is accessed by someone else.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将您的批处理文件或批处理文件快捷方式放在此位置
它将使您的批处理文件作为您要求的启动运行!
仅使用批处理文件发送电子邮件是非常困难或完全不可能的!
只能通过可执行文件(.exe 等,不能使用 cmd)来实现。
更新:Win10 防火墙将不允许此类程序存在并以这种方式工作!
Put your batch file or your batch file shortcut in this location
It will make your batch file run as startup which u asked for!!
and it is very difficult or completely impossible to send an email only using a batch file!!
It is only possible via executable file(.exe etc not with cmd).
UPDATE: More over Win10 firewall will not allow such program top exist and work in that way!