R
RJN
Hi
I'm trying to create a windows task through code. I could do this
through the shell command and the WMIService in .net exe. But the same
doesn't work from asp.net. Any idea? This is the code
--WMI
strComputer = "."
objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
objNewJob = objWMIService.Get("Win32_ScheduledJob")
objNewJob.Creat("C:\test.exe", "********200000.000000+330", False, , ,
False, iRet)
--Shell
Shell("AT 19:00 /every:13 C:\test.exe")
Regards
rjn
I'm trying to create a windows task through code. I could do this
through the shell command and the WMIService in .net exe. But the same
doesn't work from asp.net. Any idea? This is the code
--WMI
strComputer = "."
objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
objNewJob = objWMIService.Get("Win32_ScheduledJob")
objNewJob.Creat("C:\test.exe", "********200000.000000+330", False, , ,
False, iRet)
--Shell
Shell("AT 19:00 /every:13 C:\test.exe")
Regards
rjn