echo, not echo



Hello people,

I need to use "echo" not wscript.echo in a script. huh? An example
will probably help:


cmd = "echo password| \Program Files\GNU\GnuPG\gpg --batch
--decrypt-files --passphrase-fd 0 -d " & strIn

Set Sh = CreateObject("WScript.Shell")
Dim wsx: Set wsx = Sh.Exec(cmd)
If wsx.ProcessID = 0 And wsx.Status = 1 Then
Err.Raise vbObjectError,,"WshShell.Exec failed."
End If

--------------

The "cmd" line runs fine from a prompt. I've searched but cannot find
an "echo" executable.

Any ideas on how I can use the other echo?

Thanks in advance,
Todd

.



Relevant Pages

  • Re: echo, not echo
    ... what happens, or doesnt happen ... I need to use "echo" not wscript.echo in a script. ... Dim wsx: Set wsx = Sh.Exec ...
    (microsoft.public.scripting.vbscript)
  • Re: how to do doube substitution
    ... > # I want to echo "kernel" here. ... bash, huh? ...
    (comp.unix.shell)
  • Re: 2.6.16-rc6-mm1 : Setting clocksource results in error
    ... Huh. ... And using the -n option w/ echo doesn't ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: [Probably] silly question
    ... I had been scratching my head for a while trying to ... escape the $ to protect it from echo, so now do that, ... Easy, huh? ...
    (comp.unix.shell)
  • Re: Getting NASM from C
    ... Frank Kotler wrote: ... > Evenbit wrote: ... >> guess the key IS useful after all, huh? ... @echo off ...
    (alt.lang.asm)