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

  • Thread starter Thread starter LT Khoo
  • Start date Start date
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
 
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)
 
Back
Top