Click here to Skip to main content
16,004,944 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRe: Mixing ASP with ASP.NET Pin
Venkatesh Mookkan20-Dec-07 15:57
Venkatesh Mookkan20-Dec-07 15:57 
GeneralRe: Mixing ASP with ASP.NET Pin
Christian Graus20-Dec-07 18:31
protectorChristian Graus20-Dec-07 18:31 
GeneralRe: Mixing ASP with ASP.NET Pin
Venkatesh Mookkan20-Dec-07 20:53
Venkatesh Mookkan20-Dec-07 20:53 
GeneralWindows Authentication Impersonate Pin
ss.mmm20-Dec-07 11:00
ss.mmm20-Dec-07 11:00 
GeneralRadioButtons in a gridview [modified] Pin
Knowledgestudent20-Dec-07 9:15
Knowledgestudent20-Dec-07 9:15 
GeneralRe: RadioButtons in a gridview Pin
Not Active20-Dec-07 9:59
mentorNot Active20-Dec-07 9:59 
GeneralRe: RadioButtons in a gridview Pin
Knowledgestudent23-Dec-07 11:47
Knowledgestudent23-Dec-07 11:47 
GeneralProblem with Scheduled Tasks Pin
rspadar20-Dec-07 8:02
rspadar20-Dec-07 8:02 
Hello everybody,

I should create an application through wich a user could schedule the execution of an asp page. I'm tryng to understand how to schedule jobs in Windows Scheduled Tasks, using an asp script.

I'm using Windows 2003 SP1 and IIS 6.0

At first I had tried to use WScript.Shell and run

schtasks /create /tn prova /tr 'pagina.asp' " & _
"/sc once /st 09:55:00 /sd 23/11/2007 /ru username /rp password

but I couldn't go on because of permissions' lack.

Suddenly I've tried to use WbemScripting.SWbemLocator in this way:

1. Set Locator = Server.CreateObject("WbemScripting.SWbemLocator")
2. Locator.security_.impersonationLevel = 3
3. Set wmiNameSpace = Locator.ConnectServer (computername, "root\cimv2", username, password)
4. Set Wcls = Service.Get("Win32_ScheduledJob")

Doing this, I received a Denied Access message on type bar 3

Then I've tried to use this:

1. strComputer = "."
2. Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
3. Set objNewJob = objWMIService.Get("Win32_ScheduledJob")

But I get a Denied Access message on type bar 2

I would like to know if is the right way to create and schedule jobs, and how could I solve this problem

I apologize for my english.

Thanks
GeneralRe: Problem with Scheduled Tasks Pin
Not Active20-Dec-07 8:58
mentorNot Active20-Dec-07 8:58 
GeneralRe: Problem with Scheduled Tasks Pin
DigiOz Multimedia20-Dec-07 10:48
DigiOz Multimedia20-Dec-07 10:48 
Generalcustomize wsdl Pin
robot_rock20-Dec-07 2:59
robot_rock20-Dec-07 2:59 
GeneralRe: customize wsdl Pin
Not Active20-Dec-07 4:59
mentorNot Active20-Dec-07 4:59 
GeneralRe: customize wsdl Pin
Paul Conrad24-Dec-07 11:38
professionalPaul Conrad24-Dec-07 11:38 
GeneralInsert Multiple AuthorID under a BookISBN Pin
Sarfaraj Ahmed20-Dec-07 2:45
Sarfaraj Ahmed20-Dec-07 2:45 
GeneralRe: Insert Multiple AuthorID under a BookISBN Pin
Not Active20-Dec-07 5:06
mentorNot Active20-Dec-07 5:06 
GeneralRe: Insert Multiple AuthorID under a BookISBN Pin
Christian Graus20-Dec-07 9:50
protectorChristian Graus20-Dec-07 9:50 
GeneralRe: Insert Multiple AuthorID under a BookISBN Pin
Sarfaraj Ahmed21-Dec-07 0:15
Sarfaraj Ahmed21-Dec-07 0:15 
QuestionGridview sorting Pin
Sunil Wise20-Dec-07 2:13
professionalSunil Wise20-Dec-07 2:13 
GeneralRe: Gridview sorting Pin
Christian Graus20-Dec-07 9:51
protectorChristian Graus20-Dec-07 9:51 
QuestionRe: Gridview sorting Pin
Sunil Wise20-Dec-07 18:24
professionalSunil Wise20-Dec-07 18:24 
GeneralConverting a byte array into System.Web.UI.HtmlControls.HtmlImage Pin
mareers20-Dec-07 1:50
mareers20-Dec-07 1:50 
GeneralRe: Converting a byte array into System.Web.UI.HtmlControls.HtmlImage Pin
pmarfleet20-Dec-07 2:28
pmarfleet20-Dec-07 2:28 
GeneralRe: Converting a byte array into System.Web.UI.HtmlControls.HtmlImage Pin
ScotterMonkey23-Oct-09 16:27
ScotterMonkey23-Oct-09 16:27 
GeneralKnow The Problem Pin
keyto20-Dec-07 0:44
keyto20-Dec-07 0:44 
GeneralRe: Know The Problem Pin
pmarfleet20-Dec-07 2:18
pmarfleet20-Dec-07 2:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.