#152046 - 2005-11-23 10:07 AM
Re: command result to a variable
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Quote:
I'm pretty sure that: shell "c:\clam\clamscan.exe -V >c:\temp.txt" would not work. There is a FAQ that explains why not.
Quite right.
In summary redirection (>), piping (|) and conditional execution (&&) are specifically features of the DOS interpreter/processor (CMD or COMMAND) not of the Windows execution environment.
This means that if you want to use these features you must execute them as parameters for CMD.
However if WSH is an option then as the guys have already said your best option is the wshPipe() UDF.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1183 anonymous users online.
|
|
|