windows2012 系统中
编写了一个ps1
如这样
funtion fun([string]$url )
{
curl -uri $url -Method Get
}
然后试图在操作系统cmd 下
C:\Users\admin>schtasks /Create /sc minute /mo 5 /tn liveLog /tr “powershell.exe d:\fun.ps1 fun ‘http://www.mysite.com/state=live'”
没有效果