process

ajartaknev

New member
Joined
Sep 10, 2009
Messages
1
Programming Experience
5-10
Hi,
I am looking to execute an R script from VB as below.
The script runs fine but the redirection doesnt seem to happen. The
redirection operator and the out file seem to be treated as arguments
to the R script. Is there a way to get the > operator working

thanks, R

dim proc as new System.Diagnostics.Process()
proc.StartInfo.FileName = "E:/R/bin/Rscript.exe"
proc.StartInfo.Arguments = "E:/R/bin/test.r > test.out"
proc.StartInfo.UseShellExecute = true
proc.Start()
 
Top Bottom