This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cygrunsrv and .bat files ??

Thanks, Fred, I'll try the cmd.exe option.  About the second part of my 
post, is it possible to set the "interact with desktop" flag via a command 
line switch??

Thanks again,

>To: Glenn Mabbutt <>
>Subject: Re: cygrunsrv and .bat files ??
>Date: Wed, 1 Aug 2001 14:55:50 -0500
>cygrunsrv executes the controlled program via the execv() system call,
>which (AFAIK) doesn't understand win32 batch files.  You might try
>configuring your service to run cmd.exe as the program and give it the
>name of your batch file as an argument, so that cygrunsrv executes
>cmd.exe which then runs the batch file.
>On Wed, Aug 01, 2001 at 02:37:36PM -0500, Glenn Mabbutt wrote:
> > Hi. I've got a 2 line batch file that I'm trying to run as a service on
> > NT/2000 (starts a secure tunnel client which spawns vncviewer in listen
> > mode, then kills vncviewer process after secure tunnel client exits).
>Fred Yankowski       tel: +1.630.879.1312
>Principal Consultant       fax: +1.630.879.1370
>OntoSys, Inc             38W242 Deerpath Rd, Batavia, IL 60510, USA
>Unsubscribe info:
>Bug reporting:

Get your FREE download of MSN Explorer at

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]