Q:

Redirecting standard output using Shell()

I am writing an application, where I have to invoke php.exe interpreter and send output to file.  I know that it might be more convenient using process class, but I have to use Shell()
I tried: 
 Shell("D:\wamp\bin\php\php5.4.3\php.exe " & file & " > tmp.html")

and: 
 Shell("cmd.exe |D:\wamp\bin\php\php5.4.3\php.exe " & file & " > tmp.html")

but both prints output instead.  How can I use Shell and redirect output to file? 

A:

I created bat file containing:
D:\wamp\bin\php\php5.4.3\php.exe %1 > tmp.html

And then invoked it by:
Shell("php.bat " & file)

