Re: Schedule Tasks to run interactively without being logged in

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi Nik,

This may not suit you but can't you run the tests whilst logged on with the
desktop _locked_ overnight?

GUI thingies will still run under your logged on Window Station desktop
thread.

Cheers,

CreateWindow
http://mymessagetaker.com


<nikeshp4tel@xxxxxxxxx> wrote in message
news:1177662842.397449.266540@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all,

I running overnight tests which uses windows form. If I run the tests
in command prompt when i'm logged in, the tests work pefectly fine.
However if I schedule the task through Scheduled Tasks wizard and run
at midnight when no one is logged in i get the follwoing error:

System.InvalidOperationException : It is invalid to show a modal
dialog or form when the application is not running in UserInteractive
mode. Specify the ServiceNotification or DefaultDesktopOnly style to
display a notification from a service application.


To overcome this I've tried to schedule it running the AT command
using the /interactive command. This woks perfectly fine if you use
the default user login for the AT command which is the local system.
However I do not want to run the task under local system because
before I run the tests I need to check out some files using cvs which
requires my user login details. So i change the default account of
the AT scheduler to be my account. This works fine but the tests seem
to freeze when it attempts to load up dialogue boxes. For some reason
they do not appear and my tests hang around looking for them.

If it works for local system but hangs for my user login, there must
be some internal permissioning that prevents my login from displaying
these dialogues. Has any1 come across this or has any1 got any ideas
to over come this?

Any help will be much appreciated.

Nik



.



Relevant Pages

  • Schedule Tasks to run interactively without being logged in
    ... I running overnight tests which uses windows form. ... in command prompt when i'm logged in, ... However if I schedule the task through Scheduled Tasks wizard and run ... the default user login for the AT command which is the local system. ...
    (microsoft.public.windows.server.general)
  • Schedule Tasks to run interactively without being logged in
    ... I running overnight tests which uses windows form. ... in command prompt when i'm logged in, ... However if I schedule the task through Scheduled Tasks wizard and run ... the default user login for the AT command which is the local system. ...
    (microsoft.public.win2000.general)
  • Schedule Tasks to run interactively without being logged in
    ... I running overnight tests which uses windows form. ... in command prompt when i'm logged in, ... However if I schedule the task through Scheduled Tasks wizard and run ... the default user login for the AT command which is the local system. ...
    (microsoft.public.windowsxp.general)
  • Schedule Tasks to run interactively without being logged in
    ... I running overnight tests which uses windows form. ... in command prompt when i'm logged in, ... However if I schedule the task through Scheduled Tasks wizard and run ... the default user login for the AT command which is the local system. ...
    (microsoft.public.windows.server.general)
  • Are you australian, I mean, shuting over available peaks?
    ... It will greet the growing cell and reserve it prior to its schedule. ... Plenty of members indirectly sweep the lexical monument. ... Beth never spills until Ikram totals the involved command ... All average violent trusts wickedly ...
    (sci.crypt)