I have an asp script that I need to run once a day. I tried using 'Path to an executable file' and 'arguments' as shown below for invoking an aspx script but it fails. Can Task scheduler run an asp script?
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
-c “(new-object system.net.webclient).downloadstring(‘http://mysite.com/clear_cnts.asp‘)”
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
-c “(new-object system.net.webclient).downloadstring(‘http://mysite.com/clear_cnts.asp‘)”