Quantcast
Channel: Task Scheduler Managed Wrapper
Viewing all articles
Browse latest Browse all 2206

New Post: Passing arguments to a powershell script

$
0
0
Hey, I want to run powershell.exe to run a script. But the script in turn takes arguments. How do I achieve this ?

this doesnt work...
myTask.Actions.Add("powershell.exe","C:\\Users\\aqeel\\Desktop\\FYP\\sender.ps1", MyStringArgs);

Viewing all articles
Browse latest Browse all 2206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>