Bill,
The instructions you sent worked as well.  Thanks for the help.

On Fri, Oct 3, 2008 at 12:33 PM, Bill Haskett <[EMAIL PROTECTED]>wrote:

> Mike:
>
> How well did the instructions I sent you work?
>
> Bill
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Mike Roosa
> Sent: Friday, October 03, 2008 8:48 AM
> To: u2-users@listserver.u2ug.org
> Subject: Re: [U2] Windows Task Scheduler
>
> Well, I got an error with option #1, but option #2 worked fine.  I'll just
> go with that way for now.  Thanks.
>
> On Fri, Oct 3, 2008 at 12:56 AM, Tony G <[EMAIL PROTECTED]> wrote:
>
> > Hi Mike.  Three methods come to mind.
> >
> > 1) start /b c:\ibm\uv\bin\uv.exe "PHANTOM MY.PROGRAM"
> >
> > 2) Some people may prefer a script, so here is how to do it like
> > that.  Create a text file called uvphantom.vbs with the contents
> > below.  You can do this from BASIC and customize as required.  ;)
> > You can also do this with just two lines but I broke it into
> > four, to avoid email wrapping here.
> >
> > ''''''''
> > Set objShell = CreateObject("WScript.Shell")
> > uvexec = "c:\ibm\uv\bin\uv.exe "
> > command = """PHANTOM MY.PROGRAM"""
> > output = " > phantom_output.txt"
> > objShell.Run "cmd /c " & uvexec & command & output, 0, False
> > ''''''''
> >
> > The /c in the last line means close the a window as soon as the
> > command finishes, assuming a window gets a chance to open.
> > The 0 means hide the output (you can also use 7).
> > The False means don't wait for the command to finish, just spawn
> > the task and move on.
> >
> > Now with task scheduler, execute:
> >        wscript c:\path\to\uvphantom.vbs
> >
> > Since I know you work with C#, you can also use
> > System.Diagnostics.Process if you want to do more rigourous
> > handling of output, maybe completely wrap the process.
> >
> > HTH
> > T
> >
> > > From: Mike Roosa
> > > I am using the Windows Task Scheduler to run a job in
> > > Universe.  Everything is working great except that I
> > > can't figure out how to keep the console window from
> > > opening when the uv.exe command is executed.  The
> > > command I'm using to run my program is
> > > c:\ibm\uv\bin\uv.exe "PHANTOM MY.PROGRAM".  Is there a
> > > switch or something to indicate that the console
> > > window should not open?
> > -------
> > u2-users mailing list
> > u2-users@listserver.u2ug.org
> > To unsubscribe please visit http://listserver.u2ug.org/
> -------
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
> -------
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to