Question: I am new in `visual c++` and I am practicing to develop very simple application.

I am still learning so please guide me.

I am trying to run a `batch file` withing visual c++ and need to add an `arg`after it.

```
String ^ arg = textBox1->Text;

system("file.bat"); // how can I add my arg here?

```

the arg depends on user's input from textbox.

Thank you very much in advance...

solution:

String ^ arg = textBox1->Text;
Process::Start("C:\file.bat", arg);

Answer: 
I have tried this:

```cpp
#include <iostream>
#include <iostream>
using namespace std;

int main()
{
    string str = "*.txt";
    system((string("dir ") + str).c_str());
    return 0;
}

```

and this works
I think `system("file.bat " + arg)` will work?