I need to send a system command to another program from within R but have a small hangup

I'm trying to do something like this

system("notepad myfile.txt")

But, more generally this is happening to multiple files, so I loop over thousands of files. For purposes of an example, my code is something like this, which does not work

aa <- 'notepad.exe'
fnm <- 'myfile.txt'
system("aa fnm")

Any suggestions?
Harold

	[[alternative HTML version deleted]]


