Dear R-sians!
The following command works fine on Dos Prompt, but not in a windows batch
script...

dir /S /B C:\Progra~1\R\R* |findstr /I "rcmd.exe" |findstr /I "2.8.1"


how do I implement the above in a windows batch script? I tried to use:
for /F "usebackq tokens=*" %%i in (`dir /S /B C:\Progra~1\R\R* |findstr /I
"rcmd.exe" |findstr /I "2.8.1"`) do @echo %%i

and it does not seem to work! Where am I doing wrong?


THANKS A TON in advance!

Regards,
Santosh

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to