system function doesn't show console window in Vista window servic

L

LT Khoo

Hello everybody,

I had a window service program that invokes command scripts from bat/cmd
files using the C function "system", compiled using Visual Studio 2005. When
the scripts are invoked in Windows 2000, console windows pop up and
disappear. Though a little annoying, these windows helps a lot when an error
happens as the window will stay on.
In Vista, there is no console window at all thus it is difficult to tell an
error in the scripts. Is there a setting somewhere in Vista that disable the
console ?
I have tried another function "spawn" but it doesn't work either.
Is there a function that will bring up the console even in Vista window
service ?
Please help.

ltkhoo
 
S

SvenC

Hi LT Khoo,

I had a window service program that invokes command scripts from
bat/cmd files using the C function "system", compiled using Visual
Studio 2005. When the scripts are invoked in Windows 2000, console
windows pop up and disappear. Though a little annoying, these windows
helps a lot when an error happens as the window will stay on.
In Vista, there is no console window at all thus it is difficult to
tell an error in the scripts. Is there a setting somewhere in Vista
that disable the console ?
I have tried another function "spawn" but it doesn't work either.
Is there a function that will bring up the console even in Vista
window service ?
Please help.

This is session 0 isolation. All services run in session 0. User sessions
start at session 1 and above. Other sessions cannot communicate
with your user sessions desktop (search for the terms "window station"
and desktop)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top