var file = new File("/D/myFolder/myCmd.bat"); file.execute();