Re: VB script skelleton

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Ed Stuart (the.loquitur_at_gmail.com)
Date: 10/28/04


Date: 28 Oct 2004 01:05:59 -0700

O.K. I used NotePad to create the file test.vbe with the contents:

  set shell = createobject("wscript.shell")
  shell.run """c:\Program Files\Gtray\GTray.exe"""
  shell.run """c:\Program Files\Mozilla Firefox\Firefox.exe"""

and I executed the file with the command line

  wscript test.vbe

but nothing happened. I'm sure that I'm almost there. What did I do wrong?

Thanx,
Ed

"Michael Harris \(MVP\)" <mikhar at mvps dot org> wrote in message news:<uR7eHEIvEHA.3152@TK2MSFTNGP14.phx.gbl>...
> > 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"""



Relevant Pages

  • Subprocess quote problem
    ... I'm working on a script that executes a command with arbitrary ... is used to indicate a file with the targets that nmap should scan. ... But, if I try to use the same scan on my command execution script, it ...
    (comp.lang.python)
  • 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)
  • Re: Need Help With Script
    ... The moment this line of the script executes, ... When you execute the command ... I tried your simplified syntax without usebackq or backquotes and the script ...
    (microsoft.public.windows.server.general)
  • Re: Batch Counter in For-Do loop
    ... > I have a batch file that executes a bunch of apps and counts the ... > I've stripped down the batch file to the following. ... The bracketted set of commands immediately following the "do" command are ... unexpected problems depending on what else your script does, ...
    (comp.programming)
  • Re: Batch Counter in For-Do loop
    ... > I have a batch file that executes a bunch of apps and counts the ... > I've stripped down the batch file to the following. ... The bracketted set of commands immediately following the "do" command are ... unexpected problems depending on what else your script does, ...
    (microsoft.public.win2000.cmdprompt.admin)