Sign in to follow this  
Followers 0
E1M1

WinGetTitle("[Active]") Don't work (I can't find the problem)

7 posts in this topic

#1 ·  Posted (edited)

I found following code not working if script is running under user called "SYSTEM"

(I created servive)

WinGetTitle("[Active]")

I used following command to create service.

sc create MyService BinPath= "C:\MyFile.exe"

If you have any ideas how to get this work, pleae let me know. If you have any questions, just ask.

Edited by E1M1

edited

Share this post


Link to post
Share on other sites



Hi.

Did you tick the checkbox "Allow Service to exchange data with desktop" (something like that) in the service's properties?

Regards, Rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

if I add type= "interact" then I get error:

C:\Documents and Settings\user>sc create MyService BinPath= "C:\MyFile.exe" type
= "interact"

[SC] CreateService FAILED 87:

The parameter is incorrect.
Edited by E1M1

edited

Share this post


Link to post
Share on other sites

Hi,

try:

sc create MyService BinPath= "C:\MyFile.exe" type= own type= interact

;-))

Stefan

Share this post


Link to post
Share on other sites

thank you, but I can't understand why it have to be type= own type= interact?


edited

Share this post


Link to post
Share on other sites

Hi,

here's the hint:

http://technet.microsoft.com/ja-jp/library/cc990289(WS.10).aspx

Extract:

interact - Specifies that the service can interact with the desktop, receiving input from users. Interactive services must be run under the LocalSystem account. This type must be used in conjunction with type= own or type= shared. Using type= interact by itself will generate an "invalid parameter" error.

;-))

Stefan

Share this post


Link to post
Share on other sites

great thanks!


edited

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0