echo, not echo
- From: "Todd" <todd.mcgrath@xxxxxxxxx>
- Date: 31 Jul 2006 10:51:07 -0700
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
.
- Follow-Ups:
- Re: echo, not echo
- From: Jim
- Re: echo, not echo
- From: Dave Patrick
- Re: echo, not echo
- Prev by Date: Re: Problem with CDO.Message and attachments
- Next by Date: Re: echo, not echo
- Previous by thread: Re: "Access Denied" error when copying a file to a remote computer
- Next by thread: Re: echo, not echo
- Index(es):
Relevant Pages
|