There are a variety of methods available.

You could simply make a system call:

system("allowio test.bat /a");

...although this method is probably not PC these days.

There's the spawn functions, with a likely candidate for your needs being:

_spawnlp( _P_WAIT, "allowio", "allowio", "test.bat", "/a", NULL );


There are others too, _exec, ShellExecute. I'm sure there are more...

Hope this helps,

- Nigel