C
cct
Dear all,
Running on on Windows XP Professionals with SP2.
Below code can run well in Consol application with task scheduler
successfully created.
But when I run in Asp.net,
with windows authentication selected and I'm login as Administrator,
No error prompt but no task scheduler has been created.
*******************
ProcessStartInfo psi = new ProcessStartInfo();
psi.FileName = @"schtasks.exe";psi2.Arguments = @" /create /tn abc /tr
""c:/test.exe 282"" /sc once /st ""10:10:00"" /sd ""01/07/2005"" /ru
""System""";
psi.UseShellExecute = false;
psi.WindowStyle=ProcessWindowStyle.Hidden;
Process process = Process.Start(psi);
process.WaitForExit();
process.Close();
****************
do anyone know?
Many Thanks.
Running on on Windows XP Professionals with SP2.
Below code can run well in Consol application with task scheduler
successfully created.
But when I run in Asp.net,
with windows authentication selected and I'm login as Administrator,
No error prompt but no task scheduler has been created.
*******************
ProcessStartInfo psi = new ProcessStartInfo();
psi.FileName = @"schtasks.exe";psi2.Arguments = @" /create /tn abc /tr
""c:/test.exe 282"" /sc once /st ""10:10:00"" /sd ""01/07/2005"" /ru
""System""";
psi.UseShellExecute = false;
psi.WindowStyle=ProcessWindowStyle.Hidden;
Process process = Process.Start(psi);
process.WaitForExit();
process.Close();
****************
do anyone know?
Many Thanks.