Solved

Running other applications from a NT service

Posted on 2001-09-17
4
137 Views
Last Modified: 2010-04-06
I'm trying to run an application (source safe) from within a service application.

Tried with CreateProcess and WinExec but it doesn't work.
The program is not started.

Any ideas ?

0
Comment
Question by:winne
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 14

Accepted Solution

by:
AvonWyss earned 200 total points
ID: 6487194
Does the service have the "Interact With Desktop" flag set? It may also be necessary to start the service as a specific user instead of the Local Machine account.
0
 

Author Comment

by:winne
ID: 6496294
will check "Interact With Desktop" flag
but I cannot start the service on a specific user
it doesn't seem to work. I've created a new user in the admin group and used that info in delphi.
It says it cannot find the user...
0
 
LVL 17

Expert Comment

by:geobul
ID: 9308077
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

accept AvonWyss's comment as answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Thanks,

geobul
EE Cleanup Volunteer
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question