Hi,

I'm trying to setup an XP scheduled task that runs this batch file:

@echo off
cd C:\Program Files\R\R-2.8.1\bin
Rscript -e "date()" -e "format(Sys.time(), \"Z:\John\Rfiles\Btest.R")"
REM R CMD BATCH Z:\John\Rfiles\Btest.R
pause

but I get this error:

'Rscript' is not recognized as an internal or external command,
operable program or batch file.
Press any key to continue . . .

R is installed on the C drive of the above box.

Can anyone tell me what I'm doing wrong pls?

Thanks,
John

	[[alternative HTML version deleted]]

