在我的应用程序中,我传递了一些命令行参数来安排任务。
str是成为
在命令行参数中传递应用程序的路径
/create /tn StartIE /tr "C:\Program Files\Internet Explorer\iexplore.exe http://abc.com" /sc onlogon
一些操作后一个字符串,然后我开始的过程为:
ProcessStartInfo ps = ProcessStartInfo("schtasks");
ps.Arguments = str;
Process.Start(ps);
当我看着为计划任务的任务scheudler,我得到行动的时间表任务为:
C:\Program
and the Arguments as: Files\Internet Explorer\iexplore.exe http://abc.com
所以,问题是因为空间程序文件。我该如何纠正一件事情,以便实际的程序仍然是
C:\Program Files\Internet Explorer\iexplore.exe http://abc.com
和Arguments = http://abc.com
?