调用cmd start命令无法在R中运行

时间:2013-12-01 00:13:58

标签: r windows-xp

我已多次测试过。

#can run in R 
system("mplay32.exe  /play c:/m1.mp3")
system("mplay32.exe  /play c:\\m1.mp3")
#can run in XP CMD  
start /b mplay32.exe  /play c:\m1.mp3
#can not run in R
system("start /b mplay32.exe  /play c:\m1.mp3")
system("start /b mplay32.exe  /play c:\\m1.mp3")
system("start \/b mplay32.exe  /play c:\\m1.mp3")  
system("start \\/b mplay32.exe  /play c:\\m1.mp3")

如何让start /b mplay32.exe /play c:\m1.mp3在R中运行?

0 个答案:

没有答案