$a = 1
$str = "hello world"
Set-Variable a 1
Set-Variable str "helloworld"




ipconfig /release
ipconfig /renew

set /a yyyy=%date:~0,4%,mm=1%date:~5,2%%%100,dd=1%date:~8,2%%%100

rar a E:\%yyyy%.%mm%.%dd%.zip E:\%yyyy%.%mm%.%dd%

rem ----邮件内容-----
set body=%yyyy%.%mm%.%dd%
rem ----邮件主题----
set s=%yyyy%.%mm%.%dd%
rem ----收件邮箱-----
set 
rem ----发件邮箱-----
set 
rem ----邮箱秘钥-----
set 
rem ----附件-----
set attach=%yyyy%.%mm%.%dd%.zip
set debug=-debug -log blat.log -timestamp

rem ----执行发送-----
E:
Blat -body %body% -s %s% -attach %attach% -t %t% -server smtp.126.com  -f %f% -u %f% -pw %pw% -base64 -charset utf8 %debug% -try 3

preView