You should be able to use system
(note the lower case s
), preferably the multi-argument form:
system 'wine', 'cmd.exe', '/C', 'InitialCallFile.bat', self.infile, self.outfile, self.param1, self.param2
Note that the constant parts are string literals whereas as the variable parts (such as self.infile
) are method calls and so they're not quoted.
You could also use string interpolation to build the command but that's a really bad idea and I'm not going to encourage bad habits by showing you how.