Re: VB script skelleton

From: Michael Harris \(MVP\) ("Michael)
Date: 10/27/04


Date: Wed, 27 Oct 2004 16:59:41 -0700


> I'm interested in writing a short script that executes
>
> * firefox (my browser)
> * GTray (an app that monitors my GMail)
>
> as background jobs because they both never exit, they just keep
> running. Could someone please give me a skelleton of a VB script that
> I could execute?

set shell = createobject("wscript.shell")
shell.run "some_program.exe"
'or...
shell.run """c:\some path with spaces\some_program.exe"""

-- 
Michael Harris
Microsoft.MVP.Scripting
Sammamish WA US


Relevant Pages

  • Re: John Resig Video
    ... that it should only be used on script resources where it ... That fulfills the "doesn't matter when it executes" statement. ... And in environments were defer is not implemented that same script is going to processed inline and so be executed before the DOM is complete, which could still happen even if defer is implemented as "can continue ...
    (comp.lang.javascript)
  • Files appear to be cross linked
    ... script requires a number of standard environment variables to be set ... so it calls a second shell script to set these at the session level, ... control should return to the first shell script, ... that the script executes to the last line prior to the displaying of ...
    (comp.unix.solaris)
  • Time::Local busted?
    ... I have a script that tails a file and on a SIGTERM I want it to exit. ... It traps the signal, executes an 'exit', and then hangs! ... If I comment it out the script exits on SIGTERM and if it leave it in it doesn't. ...
    (comp.lang.perl.misc)
  • Re: John Resig Video
    ... Modern browsers perform parallel downloads. ... The statement I was commenting on came at the end of a paragraph that commenced "The defer attribute tells the parser that it can continue downloading and rendering the page", so an example that does not feature the DEFER attribute seems to serve no purpose as a clarification of what you were talking about. ... That fulfills the "doesn't matter when it executes" statement. ... It would be somewhat desirable to have better control over script ...
    (comp.lang.javascript)
  • Permission to execute jobs but nothing else
    ... This script is executed by a scheduled SQL job which ... executes a CSCRIPT command pointing to this script on the ... to me as long as I can setup a weak Login ID that can do ...
    (microsoft.public.sqlserver.security)