private void myFunction(String userName){ String fileName = this.generateFile(userName); String[] command = new String[4]; command[0] = \"cmd\"; comm
Try this:
final Runtime rt = Runtime.getRuntime(); rt.exec(your command line here as a single String);